You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Naresh Arelli <na...@gmail.com> on 2009/11/16 06:26:43 UTC
Angle brackets in xml
Hi All,
I am having a problem in using angle brackets ( '<' '>' ) within an xml tag
value
while it is getting parsed by Xerces SAX2XMLReader.
I tried using >, < and CDATA.
But still we are getting error while parsing.
Could anybody please help on this?
--
Thanks & Regards
Naresh
Re: Angle brackets in xml
Posted by Dale Worley <dw...@nortel.com>.
On Mon, 2009-11-16 at 10:56 +0530, Naresh Arelli wrote:
> I am having a problem in using angle brackets ( '<' '>' ) within an xml tag
> value
> while it is getting parsed by Xerces SAX2XMLReader.
> I tried using >, < and CDATA.
> But still we are getting error while parsing.
>
> Could anybody please help on this?
It would help immensely if you included a test file which is not parsed
correctly. Ideally, you would attach it to your message, as attachments
are less likely to be reformatted by mail programs.
Dale
Re: Angle brackets in xml
Posted by Pete Cordell <pe...@codalogic.com>.
Original Message From: "Naresh Arelli"
> I am having a problem in using angle brackets ( '<' '>' ) within an xml
> tag
> value
Do you mean you want to do something like:
<my<tag ...
?
If so I think you'll find that this is illegal. See productions 4, 4a and 5
at:
http://www.w3.org/TR/REC-xml/#NT-Name
HTH,
Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using XML C++
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
for more info