Re: [PEPr] Comment on XML::XML_FastCreate

From: Date: Sat, 10 Apr 2004 17:59:39 +0000
Subject: Re: [PEPr] Comment on XML::XML_FastCreate
References: 1 2 3 4 5 6 7  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-27400@lists.php.net to get a copy of this message
Le sam 10/04/2004 à 16:23, Stephan Schmidt a écrit : > Hi, > > > Why you says "invalid XML" ?! > > Why my XML is invalid please ? > because you should at least also use &lt; and &amp;. > > I know that the most parsers will accept it like you generate the XML, > but still it was meant differently. From w3c.org: "The ampersand > character (&) and the left angle bracket (<) may appear in their literal > form only when used as markup delimiters, or within a comment, a > processing instruction, or a CDATA section. They are also legal within > the literal entity value of an internal entity declaration; see "4.3.2 > Well-Formed Parsed Entities". If they are needed elsewhere, they must be > escaped using either numeric character references or the strings "&amp;" > and "&lt;" respectively. The right angle bracket (>) may be represented > using the string "&gt;", and must, for compatibility, be escaped using > "&gt;" or a character reference when it appears in the string "]]>" > in > content, when that string is not marking the end of a CDATA section" > > (http://www.w3.org/TR/1998/REC-xml-19980210#syntax) > Ok, thanks for this information. So if i quote theses characters by default ( < " & > to &lt; &quot; &amp; &gt; ), what is the problem ? If i look in your XML_Util (i will use it for adapt the perl script in PHP), you just do a replace of theses by their entities equivalent. So explain me why add a dependency to XML_Util make my package more "valid" ? Regards,

« previous php.pear.dev (#27400) next »