Generating XML from XSDs
I have an bunch of XSDs which in turn inherits schema's from different XSD's and I need to generate an XML file for testing purpose from this XSD. I am using the oXygen开发者_StackOverflow XML Editor to do this but when I try to do it, it is not working for me and it says please define root node but than it does not allow me to do so. So if anyone had worked with oxygenXML do suggest of what could be way around for this ?
Additional Question: How can we validate incoming XML file with XSD's which inherits schema's from other XSD's ? here the things is that I have single incoming XML file where as I have around 57 XSD's some of which inherits schema's from other XSD's.
You can use XMLSPY. Using XMLSPY you can generate XSD/DTD from XML or generate simple XML (without values) from XSD and validate the XML with XSD.
Since oXygen is commercial software, why not ask on their forum or just contact them for support?
once more suggestion is if you have BizTalk installed on your machine. The Visual studio support for XSD is excellent. You can right click on a XSD and generate instance will generate an XML for you.
You can also try using this tool from Microsoft
http://msdn.microsoft.com/en-us/library/aa302296.aspx
精彩评论