jQuery in Action, 3rd edition
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

convert XMLs with different .xsd

Harris Tanu

Joined: Apr 05, 2006
Posts: 24

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

Joined: Oct 14, 2005
Posts: 19973

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

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

I just know there is a tool to help the conversion:
Altova Mapforce.
I agree. Here's the link: http://aspose.com/file-tools
subject: convert XMLs with different .xsd
It's not a secret anymore!