Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parsing Error - Invalid Token Due to &
Message
From
06/05/2004 14:34:28
 
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
00901300
Message ID:
00901697
Views:
15
Hi Lisa, my mistake. Sorry. I know, 'illegal' was not the correct term to use. :0)

I was researching those characters in the book Extensible Markup Language (XML) 1.0 by Tim Bray and Jean Paoli printed in February 1998. I found the predefined entities in section 4.6 of the W3C Recommendation of February 2004.

It can also be found here:

http://www.w3.org/TR/REC-xml/





>What book called them "illegal" <g>?
>
>They're not. They're control or markup characters, so they have to be replaced by entity references. And, yup, that's the whole set of control/markup characters.
>
>In fact only two of them are not allowed entirely in their simple state (ampersand and left angle). I guess those two could be considered "illegal" <g>. You can use the right angle if you want, most people do not because it's too hard to remember which is which <g>. And apos and quot are escape-able (IOW XML defines these entity references) mainly so you can use both delimiters within the text of an attribute, which itself has to be delimited.
>
>There are some other restrictions beyond control characters. For example I think it *is* illegal according to the standard to use the nodename or namespace prefix xml, that's reserved (I may be remembering this wrong, and of course the standard didn't stop MS from creating 'XML islands' .)
>
>There are also ranges of characters in Unicode that are discouraged for use in XML because they have special (control character) meaning to Unicode. Other than that, hex or decimal representation of all characters is supposed to be allowed.
>
>>L<
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform