If your doubt is very basic, (ie) how to convert a java object into an xml document, this is what
you should do.
1. Write a java program to create a text file (e.g a.xml)using FileWriter (or any low level streams).
some thing like this,
FileWriter fw=new FileWriter(new File("a.xml"));
fw.write("<?xml version=\"1.0\"?>");
fw.write("<Name>" + obj.Name + "</Name>");
You will have to write another java program to parse this document using a parser like "xerces" (from
http://xml.apache.org) and create the object from the parsed values.
---
If your doubt is about how to differentiate between an int and a string, since everything is treated as text in an xml document,
you could use attributes in the xml document.
For Example,
<Address>
<Name type="String">
John Smith
</Name>
<Phone type="int">
1800800800
</Phone>
</Address>
[This message has been edited by Alagu Seenivasan (edited December 20, 2000).]