xerces-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Swanson, Brion" <Brion.Swan...@westgroup.com>
Subject RE: Stoopid question about XMLSerializer and OutputFormat
Date Wed, 06 Nov 2002 18:34:51 GMT
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 &quot; entity as the raw character (")?

Just curious,
Brion Swanson

-----Original Message-----
From: Joseph Kesselman [mailto:keshlam@us.ibm.com]
Sent: Wednesday, November 06, 2002 1:27 PM
To: xerces-j-user@xml.apache.org
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: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Mime
View raw message