my dog learned polymorphism*
The moose likes XML and Related Technologies and the fly likes Converting String to an XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Converting String to an XML" Watch "Converting String to an XML" New topic

Converting String to an XML

Shruti Sharma
Ranch Hand

Joined: Mar 25, 2010
Posts: 55

Can someone please tell how to convert a String to an XML document. The converted XML should confirm to the given XSD. Is there any sample code that I can refer to?

Thank you,
Paul Clapham

Joined: Oct 14, 2005
Posts: 18541

So if I have a String like this:

you are looking for pre-written code which will convert that into XML based on an arbitrary schema?

I expect your actual requirements differ from that somewhat. Hopefully with more detail. Would you like to clarify?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Converting String to an XML
Similar Threads
how to parse a xml String?
Web Service XML
How to remove first line from an String containing XML?
XML b/w Servlets?
How to convert string to xml file in android