Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > XML Object Serializer?

Reply
Thread Tools

XML Object Serializer?

 
 
Byron Lee
Guest
Posts: n/a
 
      08-22-2003
Anyone have a link to a good XML object serializer?

Thanks.


 
Reply With Quote
 
 
 
 
Arnaud Berger
Guest
Posts: n/a
 
      08-22-2003
Also , have a look at the doc for :

org.apache.xml.serialize.OutputFormat
org.apache.xml.serialize.XMLSerializer

at

http://xmlc.enhydra.org/software/doc...doc/index.html

since these classes are probably part of your JRE .

This is pretty easy to use :

sthg like :

FileWriter fw = new FileWriter(someFilePath);
OutputFormat outputFormat = new OutputFormat(someDoc, "ISO-8859-1",
true);
XMLSerializer xmlSerializer = new XMLSerializer(fw, outputFormat);
xmlSerializer.serialize(someDoc);

where someDoc is...yes....an org.w3c.dom.Document

Hope this helps

Arnaud

"Byron Lee" <(E-Mail Removed)> a crit dans le message news:
o8e1b.11104$(E-Mail Removed) ...
> Anyone have a link to a good XML object serializer?
>
> Thanks.
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Different results parsing a XML file with XML::Simple (XML::Sax vs. XML::Parser) Erik Wasser Perl Misc 5 03-05-2006 10:09 PM
Object creation - Do we really need to create a parent for a derieved object - can't the base object just point to an already created base object jon wayne C++ 9 09-22-2005 02:06 AM
Transform Java object to XML string object Matt Java 7 05-19-2004 05:20 AM
Dropdown list + XML = Object reference not set to an instance of an object. darrel ASP .Net 0 04-27-2004 03:42 PM
Help! Web Service + XML Object Representatino vs. Real Object Arthur Mnev ASP .Net 0 02-02-2004 06:14 AM



Advertisments