Hi Carlos, This question has nothing to do with Webservices forum, so I am moving this to XML and Related Technologies forum. Please continue your discussion there. Thank you. Balaji
Personally,I feel jibx is better. The site is easy to understand.XmlBeans tutorials are buggy or atleast they don't work as the ppl say.
Hope this helps.
raminaa niilian
Ranch Hand
Joined: Jul 14, 2005
Posts: 550
posted
0
Hi Can you please help me to select an XML to java Object and vice versa framework ? I need it to be fast in converting an XML file to a java Object and vice versa.
Thanks
Kim Visser
Greenhorn
Joined: Apr 24, 2006
Posts: 1
posted
0
JAXB might be your guess .. but there are others, have a look here:
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12269
1
posted
0
Personally, my choice would be to give your Java object a outputToXML( PrintStream ) method and a constructor that takes an XML Element and extracts the data it needs. This is guaranteed to be faster than any other approach. Bill
Originally posted by William Brogden: give your Java object a outputToXML( PrintStream ) method and a constructor that takes an XML Element and extracts the data it needs.
While not essential, StAX's input and output API can be useful with that type of an approach - though it will require some additional JAR's. An Introduction to StAX JSR 173: Streaming API for XML Sun's API and implementation JARs for StAX can be found in the JWSDP 1.6 for StAX 1 and in JWSDP 2.0 for StAX 2.0.