Re: (no subject)
Nick MacDonald <[email protected]>
| Newsgroups | gmane.text.xml.expat.general |
|---|---|
| Message-ID | <[email protected]> |
This is not an expat specific situation... '&' is specifically reserved by the XML standard.. see: http://www.w3.org/TR/2004/REC-xml11-20040204/ --snip-- 2.4 Character Data and Markup Text consists of intermingled character data and markup. [Definition: Markup takes the form of start-tags, end-tags, empty-element tags, entity references, character references, comments, CDATA section delimiters, document type declarations, processing instructions, XML declarations, text declarations, and any white space that is at the top level of the document entity (that is, outside the document element and not inside any other markup).] [Definition: All text that is not markup constitutes the character data of the document.] The ampersand character (&) and the left angle bracket (<) MUST NOT appear in their literal form, except when used as markup delimiters, or within a comment, a processing instruction, or a CDATA section. If they are needed elsewhere, they MUST be escaped using either numeric character references or the strings "&" and "<" respectively. The right angle bracket (>) MAY be represented using the string ">", and MUST, for compatibility, be escaped using either ">" or a character reference when it appears in the string "]]>" in content, when that string is not marking the end of a CDATA section. --snip-- On 12/7/05, [email protected] <[email protected]> wrote: > > > Hi All, > > The EXPAT XML Parser seems to have "&" as one of the delimiters. The > string that is expected by my application may have an "&" as a part of > it. As a result, the EXPAT parser throws an error indicating a parsing > failure. Is there any way to make the EXPAT parser ignore the "&" for > that particular string? > Appreciate all your help. > > Animesh Saxena > > Project Engineer > Wipro Technologies > Koramangala 2, > Bangalore. India > Mobile:09986431749 > [email protected] > > > DONT GO WHERE THE PATH LEADS.. GO INSTEAD WHERE THERE IS NO PATH AND > LEAVE A TRAIL.... > > > > > > Confidentiality Notice > > The information contained in this electronic message and any attachments > to this message are intended > for the exclusive use of the addressee(s) and may contain confidential or > privileged information. If > you are not the intended recipient, please notify the sender at Wipro or > [email protected] immediately > and destroy all copies of this message and any attachments. > _______________________________________________ > Expat-discuss mailing list > [email protected] > http://mail.libexpat.org/mailman/listinfo/expat-discuss > -- Nick MacDonald [email protected]