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 Flags: -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.