Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xml to Java code converter

Status
Not open for further replies.

mydavor

Programmer
Mar 21, 2004
41
AU
Do you know any tool that can generate Java code from an xml ?


I could only create an xml file with Sun Bean Builder, version 0.6 ?
Can it generate Java code?

How can I download version 1.0 ?

I found that certain fetures of bean Builder gen be accessed via it Project Propery, but I could not find it ?
 
I do not think I have it. With that name, I have only:
xmlbeans.jar under jbuilder\lib and XmlBeans.library under jbuilder\lib.

Are they of any use?
Alternatively can I download it from somewhere?

Only that is provided on Sun site for such a xml, that holds a bean created by BeanBuilder is:

try {
InputStream is = new BufferedInputStream(new FileInputStream("tutorial.xml"));
XMLDecoder d = new XMLDecoder(is);
Object o = d.readObject();
}
catch (IOException ex) {
System.out.println(ex.getMessage());
}

But with this XMLDecoder, I can only open the bean, while I would like to be able to insert some DB access .
Any more advices?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top