permaculture playing cards*
The moose likes XML and Related Technologies and the fly likes convert XMLs  with different .xsd Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "convert XMLs  with different .xsd" Watch "convert XMLs  with different .xsd" New topic
Author

convert XMLs with different .xsd

Harris Tanu
Greenhorn

Joined: Apr 05, 2006
Posts: 24
Hi,

I'm in rush to learn way to convert XML files from one schema to XML files of different schema.
To simplify it:
abc.xml of (abc.xsd) convert to cde.xml of (cde.xsd)

I have just known that XSLT is able to convert xml from one format to another format. But so far I do not see it make uses of .xsd file.

Does it simply convert one xml file to another as specified in the .xsl stylesheet? It means, the programmer must take care of proper stylesheet without being verified by .xsd schema?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

As far as I know there is no way to force an XSL transformation's output to conform to a particular schema at the time of transformation. Except by correct programming, of course. As far as I know your only way to check that is by running the output through a validating parser after it's been produced.
Harris Tanu
Greenhorn

Joined: Apr 05, 2006
Posts: 24
Hi thanks..

I just know there is a tool to help the conversion:
Altova Mapforce.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: convert XMLs with different .xsd
 
Similar Threads
What are my options ??? - Urgent help needed
XML -vs- HTML or others
XML Element Searching in Java
accessing Attribute values of element.
Interaction of XML and XSD on the fly