This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dom to JAXB  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

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 suggestions..how can i convert to Jaxb.
 
Ranch Hand
Posts: 708
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Run away! Run away! Here, take this tiny ad with you:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!