xsd - Generate Sample XML: Could not find any element declaration for a root element -
i trying generate sample xml xsd. using altova xmlspy generate schemas. when go "generate sample xml file" receive error saying
could not find element declaration root element.
the program has worked other xsd files have tried. how can file converted or program can use generate sample xml?
without seeing xsd, might guess lacks global element definitions. could, example, collection of xsd:simpletype
, xsd:complextype
definitions. if case, should still able create sample xml if can provide root element:
- decide type of root element of xml wish generate.
- create
xsd:element
declaration of desired type. - place created
xsd:element
xsd directly, or place in own file , import or include type definitions new xsd.
providing sample xsd (or preferably minimum version of still exhibits issue) have allowed more specific in answering question.
Comments
Post a Comment