This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes XML and Related Technologies and the fly likes XML converter using JAXB ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML converter using JAXB ?? " Watch "XML converter using JAXB ?? " New topic
Author

XML converter using JAXB ??

Udit Singh
Greenhorn

Joined: Sep 18, 2000
Posts: 22
Hi,

I am newbie as per JAXB is concerned. Using the data present in my XML (say abc.xml), I want to generate different XMLs with different tag names or schema (client1.xml or client2.xml)
For example, from the following XML
<aa>
<bb>1111</bb>
<cc>44</cc>
</aa>
......I want to generate the corresponding XML
<address>
<city>1111</city>
<lane>44</lane>
</address>
...........or some more XMLs like that, but with different
tags/schema. I wanted to know if this can be achieved using
JAXB with or without much pain. And, what should be the
approach for this ?
Any suggestion would be highly appreciated.
Thanks in advance.
Regards, Udit Singh
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
It looks like you're confusing JAXB with XSLT. You can read the documentation on both and find out what's different. It sounds like what you need is XSLT.


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
Udit Singh
Greenhorn

Joined: Sep 18, 2000
Posts: 22
Hi Nathaniel Stoddard,

Thanks a lot for the input. Yes, I think I better read the documentations completely first. Thank you.

With Regards,
Udit Singh
 
 
subject: XML converter using JAXB ??