This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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: 18570
    
    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.
 
GeeCON Prague 2014
 
subject: convert XMLs with different .xsd