* JustSomeGuy wrote in comp.text.xml:
>> Basically to ensure that this is not confused with e.g.
>>
>> <xml version="1.0">
>>
>> which would not make much sense.
>
>Why wouldn't that make sense?
People and possibly processors would confuse it with element syntax, for
example.
>Is there something special about the '?' character in xml?
Well, to some extend yes, it is used to construct the XML declaration
and processing instruction.
>ie is this legal?
>
><?foo v="100"?>
Yes, that's a processing instruction, check
http://www.w3.org/TR/REC-xml
to learn more about processing instructions.
>or
><?foo v="100">
></?foo>
That's legal if there is a closing ?> following it.
--
Björn Höhrmann · private.php?do=newpm&u= ·
http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 ·
http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 ·
http://www.websitedev.de/