File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes Dom to JAXB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Dom to JAXB" Watch "Dom to JAXB" New topic

Dom to JAXB

avinash madireddy

Joined: Nov 16, 2012
Posts: 1

i'm pretty new to JaxB.

I would to like to convert a method which is parsing using DOM to JAXB.

following is the DOM code for parsing:

any can i convert to Jaxb.
g tsuji
Ranch Hand

Joined: Jan 18, 2011
Posts: 630
If the re-write from dom approach to jaxb approach is that drastic, I am not sure we can still call it a conversion.

In any case, keep the desired output as constant, unmarshal (that is the word) the xml to some pre-designed plain-old java objects as custodians of the raw data and then write out the same desired output from them. However, the technical item of unmarshalling hides behind the whole jaxb framework that you need simply have to read chapter after chapter beforehand. Hand waiving verbally clever rhetoric won't do you any good.
I agree. Here's the link:
subject: Dom to JAXB
It's not a secret anymore!