Home » Developer & Programmer » JDeveloper, Java & XML » How to convert a String to XML
How to convert a String to XML [message #500722] Wed, 23 March 2011 02:39
chanveil
Messages: 22
Registered: December 2010
Junior Member
Hi all,

I am very new to xml. I have a requirement. Here i need to modify xml based on xpath expressions. For that i need to pass a string (xml) to a function, parse and modify.

1. While giving the statement Document document = (Document) builder.build(new InputSource("<entire xml>")) , i am getting the error message "String literal not properly closed"
How to avoid this ... ?

2. How to modify xml by JDOM ...?

Thanks in advance ..
Previous Topic: Why the SAX parser cannot support the special character like "&iexcl;"
Next Topic: any way where we can insert all the 20,000 ename in table from java
Goto Forum:
  


Current Time: Tue Dec 17 22:16:08 CST 2024