it seems, you are not writing the built in entity reference for
character, "<" appropriately.
you are not writing a semicolon, after &lt.

The parsing of the document you have posted, would likely fail with
this particular error.

The Xerces-J sax.Counter sample gives following error, while parsing
the XML document you have posted:

[Fatal Error] test.xml:4:35: The entity "lt20" was referenced, but not declared.

On Fri, Dec 4, 2009 at 10:55 AM, nagineni <naganirange...@yahoo.com> wrote:
>
> Hi,
>
> I'm creating xml file using JAXP DOM parser.While writing text data to a
> node parser is writing special characters.Below is the example.
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <template>
>          <name>naga</name>
>          <expr>for(int i=0;i&lt20;i++)</expr>
> </template>
>
> I want to my XML file output for(int i=0;i<20;i++) inside <expr> element.Is
> there any solution around it ?
> Can any one suggest me the solution for this problem ?Thanks in advance.
>
> Regards,
> Naga.


-- 
Regards,
Mukul Gandhi

---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
For additional commands, e-mail: j-users-h...@xerces.apache.org

Reply via email to