Hi Friends, i am writing data from database into an XML.Then, i am retrieving those data from XML to view on jsp. but when i am writing the data into XML file i am getting an exception(related to XML format) because my data contains '&' symbol (for example javaranc & rocks).it says "not well-formed".
so how to write these kind of data(which contains special characters like &) into XML?
Author and all-around good cowpoke
Joined: Mar 22, 2000
Characters that have special meaning in XML have to be "escaped" to pass XML parsers.