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

前端 未结 19 2069
梦毁少年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:48

    In recent versions of the free and open source Eclipse IDE you can generate XML documents from DTD and XSD files. Right-click on a given *.dtd or *.xsd file and select "Generate -> XML File...". You can choose which root element to generate and whether optional attributes and elements should be generated.

    Of course you can use Eclipse to create and edit your DTD and XSD schema files, too. And you don't need to install any plugins. It is included in the standard distribution.

提交回复
热议问题