You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by "Siddharth Rath (sirath)" <si...@cisco.com> on 2003/04/18 23:10:33 UTC

Illegal XML character: &#x0;.; targetException=org.xml.sax.SAXParseException: Illegal XML character: �

Hi !!
As a  part of our application I'm translating some documents to Japanese
thats with charset=Shift_JIS 
on the fly and then as a response sending it back to client. But while
sending the doc as response
I'm getting the following error.
 
Illegal XML character:  &amp;#x0;.;
targetException=org.xml.sax.SAXParseException: Illegal XML character:
&#x0;.]
(I'm using Apache Soap)
 
Steps followed are :
1. Read the source document 
2. Translate to Japanese  as a service.
(In service program I can get the translated doc correctly)
 
3. Send the translated doc to Client. (At this point the above error
comes)
 
I did search in google for the reason and found the following:
NUL or 0x0000 (represented as the character reference &#x0;) is illegal
in
XML. It is a well-formedness (fatal) error. Any compliant XML processor
should halt on discovery of it.
 
Has anybody faced this earlier?Can you please let me know how to solve
the problem ?
 
Thanx and regards
Sidd