Solved

Object Serialization as XML

Posted on 2001-07-27
4
160 Views
Last Modified: 2013-11-19
Can someone tell me how or point me to a tutorial that show how to serialize java objects to XML?  I am looking to learn about the apache Xalan and Xerces packages, but I would be interested in other packages and methods as well.

Thank you.
0
Comment
Question by:rwoodruf
4 Comments
 
LVL 27

Expert Comment

by:rrz
Comment Utility
Have you checked out these,
http://jdom.org
http://dom4j.org
I have not used them yet.I am interested to find out what everyone says about them.
0
 
LVL 4

Expert Comment

by:sdussinger
Comment Utility
The best product I've seen for doing this is Breeze Studio.

Check out their website at: http://www.breezefactor.com

This package allows you to define an XML schema or DTD, run the breeze compiler over it and generate a series of Java classes which represent the XML elements. Changing the code is as simple as changing the schema and re-running the breeze compiler.

I've used this product before and it dramatically reduced the time it took me to develop XML based classes.

On the other hand, if you already have the Java classes, this probably is not for you. I believe that Sun has an early access version of JAXB (the Java-XML Binding JSR) available, but I'm not sure of the web address. http://java.sun.com would probably have more information on this.

--Steve
0
 

Accepted Solution

by:
susilkp earned 30 total points
Comment Utility
rwoodruf,

JAXB Specifications from Java is the best to address your needs.  Visit this: http://java.sun.com/xml/jaxb/ download the jaxb-1.0-ea specifications (you need to be a memember of Java Developer Community JDC) follow the instructions to install. This specifications has what you are looking for..
Based on an XML DTD/Schema it can generate objects for you with the necessary set/get methods and you can use these java objects to generate XML's

Apart from this there are many tools esp from Tibco visit their site, go specifically to their extensibility link.. they got some good tools like the TurboXML etc.

But the former one is the best as you know exactly whats happening with your application..

-susilkp
0
 

Author Comment

by:rwoodruf
Comment Utility
Thanks alot.  I appreciate your response.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Python Assistance 7 31
Problem to Popup 2 48
Java passing arguments (type error) 2 33
Problem to picture file 3 37
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now