How to generate sample XML documents from their DTD or XSD?

前端 未结 19 1511
梦毁少年i
梦毁少年i 2020-11-22 10:11

We are developing an application that involves a substantial amount of XML transformations. We do not have any proper input test data per se, only DTD or XSD files. We\'d li

相关标签:
19条回答
  • 2020-11-22 10:55

    Liquid XML Studio has an XML Sample Generator wizard which will build sample XML files from an XML Schema. The resulting data seems to comply with the schema (it just can't generate data for regex patterns).

    0 讨论(0)
  • 2020-11-22 10:57

    XML-XIG: XML Instance Generator

    http://xml-xig.sourceforge.net/

    This opensource would be helpful.

    0 讨论(0)
  • 2020-11-22 10:59

    For completeness I'll add http://code.google.com/p/jlibs/wiki/XSInstance, which was mentioned in a similar (but Java-specific) question: Any Java "API" to generate Sample XML from XSD?

    0 讨论(0)
  • 2020-11-22 10:59

    XML Blueprint also does that; instructions here

    http://www.xmlblueprint.com/help/html/topic_170.htm

    It's not free, but there's a 10-day free trial; it seems fast and efficient; unfortunately it's Windows only.

    0 讨论(0)
  • 2020-11-22 10:59

    There's also http://xsd2xml.com/, an online XSD to XML generator

    0 讨论(0)
  • 2020-11-22 11:02

    Microsoft Office has 'InfoPath', which takes an XSD as an import and lets you quickly and easily define a form-based editor for creating XML files. It has two modes - one where you define the form, and another mode where you create the XML file by filling out the form. I believe it first came with Office 2003, and most people never install it. It shocks me at how much I like it.

    0 讨论(0)
提交回复
热议问题