Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

writing a xml with different schema from xml with different schema using DOM

 
Bharath Raja
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've a xml file as follow.


Now I wanna to generate another xml file with different schema from this xml file using DOM parser. Expecting xml file schema is


Is there any option to do this with DOM parser.? I'm new to xml related technologies, so never mind if I've ask any silly questions
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The usual way to transform one XML document into another XML document is to use an XSL transformation.
 
Bharath Raja
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Clapham wrote:The usual way to transform one XML document into another XML document is to use an XSL transformation.

can you please elaborate. If that is possible, how can we achieve, any url's ..?
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this one: Jeni's XSLT Pages.
 
Bharath Raja
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the url. But still I'm not clearing about how can we achieve this through Java.? I've a xml file only how can I convert/embedded it with xsl through java.?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic