Return-Path: Delivered-To: apmail-xml-xerces-j-user-archive@xml.apache.org Received: (qmail 63094 invoked by uid 500); 6 Nov 2002 18:35:03 -0000 Mailing-List: contact xerces-j-user-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: xerces-j-user@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list xerces-j-user@xml.apache.org Received: (qmail 63085 invoked from network); 6 Nov 2002 18:35:03 -0000 Message-ID: From: "Swanson, Brion" To: "'xerces-j-user@xml.apache.org'" Subject: RE: Stoopid question about XMLSerializer and OutputFormat Date: Wed, 6 Nov 2002 12:34:51 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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: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