[Home] [By Thread] [By Date] [Recent Entries]
Hi Bryan, That's not well formed - the first error you should get is because there is non-whitespace text content outside the document element. The next error is that there is a processing instruction that uses the reserved name "xml" - it doesn't count as an XML declaration unless the "<" is the first character in the file. John bryan rasmussen wrote: > Should the following response to a GET be well-formed: > > <= Recv data, 423 bytes (0x1a7) > 0000: 31 39 62 0d 0a 3c 3f 78 6d 6c 20 76 65 72 73 69 19b..<?xml versi > 0010: 6f 6e 3d 22 31 2e 30 22 20 65 6e 63 6f 64 69 6e on="1.0" encodin > 0020: 67 3d 22 55 54 46 2d 38 22 3f 3e 3c 6b 6d 6c 20 g="UTF-8"?><kml > 0030: 78 6d 6c 6e 73 3d 22 68 74 74 70 3a 2f 2f 65 61 xmlns="http://ea > 0040: 72 74 68 2e 67 6f 6f 67 6c 65 2e 63 6f 6d 2f 6b rth.google.com/k > 0050: 6d 6c 2f 32 2e 30 22 3e 3c 50 6c 61 63 65 6d 61 ml/2.0"><Placema > 0060: 72 6b 3e 3c 6e 61 6d 65 3e 4e c3 a6 72 75 6d 2c rk><name>N..rum, > 0070: 20 44 65 6e 6d 61 72 6b 3c 2f 6e 61 6d 65 3e 3c Denmark</name>< > 0080: 61 64 64 72 65 73 73 3e 4e 61 65 72 75 6d 2c 20 address>Naerum, > 0090: 44 65 6e 6d 61 72 6b 3c 2f 61 64 64 72 65 73 73 Denmark</address > 00a0: 3e 3c 73 74 79 6c 65 55 72 6c 3e 72 6f 6f 74 3a ><styleUrl>root: > 00b0: 2f 2f 73 74 79 6c 65 4d 61 70 73 23 64 65 66 61 //styleMaps#defa > 00c0: 75 6c 74 2b 6e 69 63 6f 6e 3d 30 78 33 30 34 2b ult+nicon=0x304+ > 00d0: 68 69 63 6f 6e 3d 30 78 33 31 34 3c 2f 73 74 79 hicon=0x314</sty > 00e0: 6c 65 55 72 6c 3e 3c 50 6f 69 6e 74 3e 3c 63 6f leUrl><Point><co > 00f0: 6f 72 64 69 6e 61 74 65 73 3e 31 32 2e 35 33 37 ordinates>12.537 > 0100: 38 39 35 2c 35 35 2e 38 31 36 33 32 38 2c 30 3c 895,55.816328,0< > 0110: 2f 63 6f 6f 72 64 69 6e 61 74 65 73 3e 3c 2f 50 /coordinates></P > 0120: 6f 69 6e 74 3e 3c 4c 6f 6f 6b 41 74 3e 3c 6c 6f oint><LookAt><lo > 0130: 6e 67 69 74 75 64 65 3e 31 32 2e 35 33 37 38 39 ngitude>12.53789 > 0140: 35 3c 2f 6c 6f 6e 67 69 74 75 64 65 3e 3c 6c 61 5</longitude><la > 0150: 74 69 74 75 64 65 3e 35 35 2e 38 31 36 33 32 38 titude>55.816328 > 0160: 3c 2f 6c 61 74 69 74 75 64 65 3e 3c 72 61 6e 67 </latitude><rang > 0170: 65 3e 31 35 36 37 2e 30 34 37 32 34 31 3c 2f 72 e>1567.047241</r > 0180: 61 6e 67 65 3e 3c 2f 4c 6f 6f 6b 41 74 3e 3c 2f ange></LookAt></ > 0190: 50 6c 61 63 65 6d 61 72 6b 3e 3c 2f 6b 6d 6c 3e Placemark></kml> > 01a0: 0d 0a 30 0d 0a 0d 0a ..0.... > > I'm wondering about the latin small letter lambda before the XML, > shouldn't that be incorrect? > Because it parses fine and it surprised me actually. > > Cheers, > Bryan Rasmussen > > _______________________________________________________________________ > > XML-DEV is a publicly archived, unmoderated list hosted by OASIS > to support XML implementation and development. To minimize > spam in the archives, you must subscribe before posting. > > [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/ > Or unsubscribe: xml-dev-unsubscribe@l... > subscribe: xml-dev-subscribe@l... > List archive: http://lists.xml.org/archives/xml-dev/ > List Guidelines: http://www.oasis-open.org/maillists/guidelines.php > -- John Snelson, Oracle Corporation http://snelson.org.uk/john Berkeley DB XML: http://www.oracle.com/database/berkeley-db/xml XQilla: http://xqilla.sourceforge.net
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |

Cart



