We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this questionCan any one show me some online tool or 开发者_JAVA技巧any other free tool which can produce a XML file based on my XSD with some dummy data.
i have a XSD with lots of fields and i don't want to do it manualy so looking some auto tool who can help me so that i can focus on parsing part rather than XML creation
I don't know if there's an online tool for this.
However take a look at this discussion.
Anyway Eclipse IDE can generate an XML file starting from a XML Schema or a DTD or an XML template.
I use Altova XML Spy. It will generate sample XML based on a schema file. The sample data will only be default text based on the data type of the elements (i.e. xs:string elements are populated with the word 'String', xs:int elements are populated with 0, etc...).
XMLSpy is only free as a trial, but if you're working with a lot of XML it's definitely a worthwhile investment.
The OpenXSD library mentions that they have support for generating XML instances based on the XSD. Check that out.
精彩评论