File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML converter using JAXB ??

 
Udit Singh
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1258
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Udit Singh
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic