Connecting Tech Pros Worldwide Help | Site Map

framework available to convert XML

Newbie
 
Join Date: Dec 2008
Posts: 3
#1: Dec 22 '08
Hi Guyz,

Is there any tool , framework available to convert the XML into different layout of the XML by refering the .XSD file. The field name and length would be matched with another .XSD called ex. (dictionary XSD). Pls help on this.


Regards,
Thiru
Moderator
 
Join Date: Mar 2006
Posts: 1,103
#2: Dec 22 '08

re: framework available to convert XML


Usually I would recommend XSLT. How does the one .XSD relate to the other? Are the field names exactly the same?

If you're looking for a commercial tool, MapForce is a XSLT helper for dummies, doing relatively simple transforms.
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,629
#3: Dec 22 '08

re: framework available to convert XML


note that a .xsd file is used to check whether a xml file conforms to the schema described, not the other way round.
Newbie
 
Join Date: Dec 2008
Posts: 3
#4: Dec 23 '08

re: framework available to convert XML


I need a frame work or set of libraries for a java project in which if I send a xml the libraries should validate with a .xsd file and give a XML output
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,629
#5: Dec 23 '08

re: framework available to convert XML


to make one point clear (maybe there's a misunderstanding) an .xsd file doesn't change the markup of an xml file. it just tells the parser, if the xml is valid or not.
Moderator
 
Join Date: Mar 2006
Posts: 1,103
#6: Dec 23 '08

re: framework available to convert XML


Try searching for java xml validation.
XML Validation and XPath Evaluation in J2SE 5.0

Also, the good part with this, is if you choose to use XSLT, you already have your XML document built to pass to the XSLT.
Reply