XML instance generation from XML schema (xsd)

xsd2inst in xmlbean creates xml instance from xml schema

\xmlbeans-2.4.0\bin>xsd2inst -h
Generates a document based on the given Schema file
having the given element as root.
The tool makes reasonable attempts to create a valid document,
but this is not always possible since, for example,
there are schemas for which no valid instance document
can be produced.
Usage: xsd2inst [flags] schema.xsd -name element_name
    -name    the name of the root element
    -dl      enable network downloads for imports and includes
    -nopvr   disable particle valid (restriction) rule
    -noupa   disable unique particle attributeion rule
    -license prints license information

and it XmlTree sample creates nice tree from xml instance.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s