• Post Reply Bookmark Topic Watch Topic
  • New Topic

Creation of XML using DOM object  RSS feed

 
ashwin vulugundam
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am creating Docvument object and appending child element like Name.
under this element there are other elements such as title,first name &last name.
now before appending last name to name what i am doing is
method(){

.....
document.createElement("lastname");
document.createTextNode(StringEscapeUtils.escapeXml(lastName));
.....
}

when escapeXML is called upon if any characters are there in other languages are converted to its unicode like (ç)

when the complete doccument is formed , this is to written in XML
i am using transformer api
this will result to creation of XML.
now when i look at this XML.I found the last name to be different in terms of unicode.
in this case i am getting (ç)

P.S : i am using com.sun.org.apache.xerces.internal.dom API
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!