• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java and XML

 
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,

I need to work on a module in our next project which deals with XML and Java. It's a module which converts Java objects to XML and XML to Java, basically a communication layer.

To summarize, I need to know the following things:

* Creating XML Documents (during runtime)
* Defining rules using XSD
* Parsing and converting XML to Java objects
* Converting Java objects to XML

I have only a very basic idea of what needs to be done. Please guide me on where to start, what to read and what to skip. Is there a good book or any online tutorial which covers the above things. In one of the threads Cameron W. McKenzie suggested these two books:

* Pro XML Development with Java Technology

* Processing XML with Java: A Guide to SAX, DOM, JDOM, JAXP, and TrAX

The second one's from Addison-Wesley I guess so I don't think I will get it here in India. Can anyone tell me whether the first one suggested is available here?

Any suggestions on how to approach in doing these things are highly appreciated. And thanks Cameron for suggesting the two books.

Thank you,
Srikanth
 
Ranch Hand
Posts: 502
jQuery Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
API which is used for this purpose is JAXP and JAXB.

There are Opensource library's which implements these API's. Which I know are

* XStream
* Castor

Mentioned above are used to convert XML to Java Objects and back again. I think, Castor is the best suit for your requirement.

hth,
reply
    Bookmark Topic Watch Topic
  • New Topic