Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Java (http://www.velocityreviews.com/forums/f30-java.html)
-   -   XML Object Serializer? (http://www.velocityreviews.com/forums/t125903-xml-object-serializer.html)

Byron Lee 08-22-2003 01:15 AM

XML Object Serializer?
 
Anyone have a link to a good XML object serializer?

Thanks.



Arnaud Berger 08-22-2003 08:58 AM

Re: XML Object Serializer?
 
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" <bglyahoo@yahoo.com> a écrit dans le message news:
o8e1b.11104$Ih1.4069214@newssrv26.news.prodigy.com ...
> Anyone have a link to a good XML object serializer?
>
> Thanks.
>
>





All times are GMT. The time now is 10:53 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.