Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Converting String to an XML

 
Shruti Sharma
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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,
-Shruti
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic