Doesn't that hold true for the quote (") as well? I seem to recall
", ', and > characters being allowed in the content of elements and
attributes with the exception that you cannot have a 'raw' quote (")
inside an attribute delimited by quote (") characters and similarly,
you cannot have a 'raw' apostrophe (') inside an attribute that is
delimited by apostrophe (') characters.
If that's true, shouldn't then the serializer be consistent and
output the " entity as the raw character (")?
Just curious,
Brion Swanson
-----Original Message-----
From: Joseph Kesselman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 06, 2002 1:27 PM
To: [EMAIL PROTECTED]
Subject: Re: Stoopid question about XMLSerializer and OutputFormat
See the XML spec. The > character does not have to be escaped in most
circumstances, though it can be and often is for readability. Similarly, '
only has to be escaped in situations where it would cause parsing
problems, specifically when it's inside an attribute which itself was
quoted with ' characters.
______________________________________
Joe Kesselman / IBM Research
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]