logo       

Re: Problems with escaping <: msg#00008

java.enhydra.kxml

Subject: Re: Problems with escaping <

Ilka wrote:
Forgive my question, I am a newbie to XML and real new to kxml.
I write my XML document to a file using the fileOutputStreamWriter together with the XmlWriter. Now I
have for example "&lt;" for the "<" sign.

How can I change it? Any help would be great!

Hi Ilka,

the < character has a special meaning in XML and if it occurs in literal text it must be escaped to &lt;. If you want to write < as part of an element, please use startTag() or endTag, or use the fileOutputStreamWriter directly if you do not need the encoding capabilities of kXML.

Best regards
Stefan


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise