openseadragon/test/data/iiif_2_0_tiled
Craig A. Berry bff93af17e Handle XML embedded in tilesource JSON
The existing check for whether the tilesource data is XML or JSON
looks for a tag anywhere in the response content, which incorrectly
flags the content as XML in the case where it is really JSON with
XML embedded in it.

This commit corrects that problem by requiring the tag to occur as
the first non-whitespace part of the content. This is basically a
poor person's well-formedness check since well-formed XML cannot
have non-whitespace content outside of the root node.

N.B. While malformed XML content with non-whitespace characters
before the first element has been getting identified as XML, it
has not been getting parsed correctly.  With current parsing
infrastructure, the content has been getting replaced by a parsing
error message.  With more up-to-date parsing infrastructure, it
will throw an error.  Either way we're not losing anything by failing
to identify malformed XML as XML.

Addresses issue #2325.
2023-03-30 16:38:35 -05:00
..
0,0,256,256/256,/0 IIIF 2.0 Tiles test 2014-07-28 12:45:52 -07:00
0,0,512,512/256,/0 IIIF 2.0 Tiles test 2014-07-28 12:45:52 -07:00
0,0,775,1024/194,/0 IIIF 2.0 Tiles test 2014-07-28 12:45:52 -07:00
0,256,256,256/256,/0 IIIF 2.0 Tiles test 2014-07-28 12:45:52 -07:00
0,512,256,256/256,/0 IIIF 2.0 Tiles test 2014-07-28 12:45:52 -07:00
0,512,512,512/256,/0 IIIF 2.0 Tiles test 2014-07-28 12:45:52 -07:00
0,768,256,256/256,/0 IIIF 2.0 Tiles test 2014-07-28 12:45:52 -07:00
256,0,256,256/256,/0 IIIF 2.0 Tiles test 2014-07-28 12:45:52 -07:00
256,256,256,256/256,/0 IIIF 2.0 Tiles test 2014-07-28 12:45:52 -07:00
256,512,256,256/256,/0 IIIF 2.0 Tiles test 2014-07-28 12:45:52 -07:00
256,768,256,256/256,/0 IIIF 2.0 Tiles test 2014-07-28 12:45:52 -07:00
512,0,256,256/256,/0 IIIF 2.0 Tiles test 2014-07-28 12:45:52 -07:00
512,0,263,512/132,/0 IIIF 2.0 Tiles test 2014-07-28 12:45:52 -07:00
512,256,256,256/256,/0 IIIF 2.0 Tiles test 2014-07-28 12:45:52 -07:00
512,512,256,256/256,/0 IIIF 2.0 Tiles test 2014-07-28 12:45:52 -07:00
512,512,263,512/132,/0 IIIF 2.0 Tiles test 2014-07-28 12:45:52 -07:00
512,768,256,256/256,/0 IIIF 2.0 Tiles test 2014-07-28 12:45:52 -07:00
768,0,7,256/7,/0 IIIF 2.0 Tiles test 2014-07-28 12:45:52 -07:00
768,256,7,256/7,/0 IIIF 2.0 Tiles test 2014-07-28 12:45:52 -07:00
768,512,7,256/7,/0 IIIF 2.0 Tiles test 2014-07-28 12:45:52 -07:00
768,768,7,256/7,/0 IIIF 2.0 Tiles test 2014-07-28 12:45:52 -07:00
full IIIF 2.0 Tiles test 2014-07-28 12:45:52 -07:00
info.json Handle XML embedded in tilesource JSON 2023-03-30 16:38:35 -05:00