I am getting a XML parsing error from weblogic.apache .xerces when I parse a XML
document which contains accented characters.
This is what I am doing
1) Some database columns have accented data for spanish,japanes e etc languages
like Número de identificação: and número de identificación.
2) I am reading this data and creating a XML file using some processing and
then writing the file on the disc using weblogic.xml.st ream.XMLOutputS tream
flush() method.
3) Then I am using FOP to render this XML in PDF. In the rendering process
the weblogic.apache .xerces.XMLpars er gets called to parse the XML. Here the
parser throws a org.xml.sax.SAX ParserException ( An invalid XML character
(Unicode: 0xfa) was found in the element content of the document).
I was under the impression that XMLParser should take care of the accented
characters. When I open the XML file which I created in XML SPY I see "box"
characters like "cliente n? de identificaci" .
Please let me know how should i handle my code here.
Thanks
document which contains accented characters.
This is what I am doing
1) Some database columns have accented data for spanish,japanes e etc languages
like Número de identificação: and número de identificación.
2) I am reading this data and creating a XML file using some processing and
then writing the file on the disc using weblogic.xml.st ream.XMLOutputS tream
flush() method.
3) Then I am using FOP to render this XML in PDF. In the rendering process
the weblogic.apache .xerces.XMLpars er gets called to parse the XML. Here the
parser throws a org.xml.sax.SAX ParserException ( An invalid XML character
(Unicode: 0xfa) was found in the element content of the document).
I was under the impression that XMLParser should take care of the accented
characters. When I open the XML file which I created in XML SPY I see "box"
characters like "cliente n? de identificaci" .
Please let me know how should i handle my code here.
Thanks
Comment