File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes Java Object to XML using Xerces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Java Object to XML using Xerces" Watch "Java Object to XML using Xerces" New topic
Author

Java Object to XML using Xerces

Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 237
Hi All,
new to this . I have a java class that I would like to convert to an xml string or Document.
Can anybody provide me with example code using Xerces.

Thanks
Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 237
Hi All,
can anybody help me with this, new to this technology
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18988
    
    8

I don't understand the question. Is it a class or an object which you want to convert? And why Xerces? Xerces is a parser, and the job of a parser is to convert an XML document into some internal format. Converting a Java object to XML is exactly the opposite. That's called serialization.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Object to XML using Xerces