<p>If you don't mind some java, trang can do this for you...</p>
<div class="gmail_quote">On Aug 31, 2011 5:33 PM, "Loren Cahlander" <<a href="mailto:loren.cahlander@gmail.com">loren.cahlander@gmail.com</a>> wrote:<br type="attribution">> Hello folks,<br>> <br>> Has anyone developed a transform to take an XML Schema and create an XML document with empty elements and attributes that adheres to the schema?<br>
> <br>> I have an example schema here:<br>> <br>> <br>> <xs:schema xmlns:schema1="<a href="http://example.com/apps/foo/resources/schemas/Other1">http://example.com/apps/foo/resources/schemas/Other1</a>" xmlns:xs="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>" xmlns:schema2="<a href="http://example.com/apps/foo/resources/schemas/Other2">http://example.com/apps/foo/resources/schemas/Other2</a>" elementFormDefault="unqualified"><br>
> <xs:import namespace="<a href="http://example.com/apps/foo/resources/schemas/Other1">http://example.com/apps/foo/resources/schemas/Other1</a>" schemaLocation="<a href="http://example.com/apps/foo/resources/schemas/Other1.xsd">http://example.com/apps/foo/resources/schemas/Other1.xsd</a>"/><br>
> <xs:import namespace="<a href="http://example.com/apps/foo/resources/schemas/Other2">http://example.com/apps/foo/resources/schemas/Other2</a>" schemaLocation="<a href="http://example.com/apps/foo/resources/schemas/Other2.xsd">http://example.com/apps/foo/resources/schemas/Other2.xsd</a>"/><br>
> <xs:element name="FuBar"><br>> <xs:complexType><br>> <xs:sequence><br>> <xs:element name="Data"><br>> <xs:complexType><br>
> <xs:sequence minOccurs="0"><br>> <xs:element name="Owner"><br>> <xs:complexType><br>> <xs:sequence><br>
> <xs:element name="Name" type="xs:string"/><br>> <xs:element name="Phone" type="xs:string"/><br>
> <xs:element name="Other2" type="schema2:Other2Type"/><br>> </xs:sequence><br>> </xs:complexType><br>
> </xs:element><br>> <xs:element name="Issuances"><br>> <xs:complexType><br>> <xs:sequence><br>
> <xs:element name="Issuance" maxOccurs="unbounded" minOccurs="0"><br>> <xs:complexType><br>
> <xs:sequence><br>> <xs:element name="Data"><br>> <xs:complexType><br>
> <xs:sequence><br>> <xs:element name="Person"><br>> <xs:complexType><br>
> <xs:sequence><br>> <xs:element name="Name" type="xs:string"/><br>
> <xs:element name="Phone" type="xs:string"/><br>> </xs:sequence><br>
> </xs:complexType><br>> </xs:element><br>> <xs:element name="EffectiveDate" type="xs:date"/><br>
> <xs:element name="ExpirationDate" type="xs:date"/><br>> </xs:sequence><br>
> </xs:complexType><br>> </xs:element><br>> <xs:element name="Other1" type="schema1:Other1Type"/><br>
> </xs:sequence><br>> </xs:complexType><br>> </xs:element><br>
> </xs:sequence><br>> </xs:complexType><br>> </xs:element><br>> </xs:sequence><br>
> </xs:complexType><br>> </xs:element><br>> <xs:element name="Other1" type="schema1:Other1Type"/><br>> </xs:sequence><br>
> <xs:attribute name="id" use="required" type="xs:NCName"/><br>> </xs:complexType><br>> </xs:element><br>> </xs:schema><br>> <br>
> Thank you,<br>> Loren<br>> <br></div>