Using Java beans to get XML documents

There are many ways to get data from XML documents in to your program. One of them is to use Java beans to get the XML documents.

_______________________________________________


_______________________________________________

To do this there is a library called JOX. You can use this JOX to pass data from an XML document to a Java Bean. With this you can match the elements of the XML document to that of the fields in the bean.

From a bean you can also create an XML document and this can also use the DTD if any to be attached to the XML document. To use JOX, first you have to create either a FileReader or a FileInputStream object that can read the XML file.

After this step you can make JOX read that object and map it to the class.Another way to map the XML elements of an XML documents to that of a java bean is to use the Koala Bean Markup Language.

To use this method to map the XML document to a java bean the XML document should follow the standards / format set by the Koala Markup Language. If this approach of mapping XML to Java bean works for you, you can go with it.

MDA Approach - Part 1 (Java World)
Submitted by lal on Wed, 07/16/2008 - 04:12. Tags: Model Driven Architecuture [MDA] is a model driven engineering approach provided by OMG. It provides a set of guidelines for structuring specifications [for eg. business functionality] expressed as models.

Java Tip: Simplify Spring Apps with @Autowired (Developer.com)
The Spring framework is a popular choice for Java developers due to its combination of power and simplicity. Spring is many things, but at its core, Spring is an IOC (Inversion of Control) container. It lets developers build applications that express object dependencies through configuration files.



FREE Subscription

Subscribe to our mailing list and receive new articles
through email. Keep yourself updated with latest
developments in the industry.

Name:
Email:

Note : We never rent, trade, or sell my email lists to
anyone. We assure that your privacy is respected
and protected.

_______________________________________

Recommended XML Books

cover
cover
cover
cover
cover
cover




 

 

FREE Subscription

Stay Current With the Latest Technology Developments Realted to XML. Signup for Our Newsletter and Receive New Articles Through Email.

Name:

Email:

Note : We never rent, trade, or sell our email lists to anyone. We assure that your privacy is respected and protected.

 

 

Add to My Yahoo!


New XML Books Titles - Best Seller's @ Amazon.com

Visit XML Training Material Guide Homepage

Technology helps engage students - how do classroom instruction and social dynamics change when the classroom is completely dependant on modern technology?

Dallas Web Design- local Dallas web design firm offers site design and backend system development