Re: Problems with escaping <
Stefan Haustein <[email protected]> Mon, 29 Dec 2003 00:02:28 +0100
| Newsgroups | gmane.comp.java.enhydra.kxml |
|---|---|
| Organization | University of Dortmund |
| Message-ID | <[email protected]> |
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 "<" 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 <. 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