Solved

Object Serialization as XML

Posted on 2001-07-27
4
175 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 27

Expert Comment

by:rrz
ID: 6327664
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
ID: 6328167
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
ID: 6759117
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
ID: 6761971
Thanks alot.  I appreciate your response.
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

688 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