sample on how to generate XML skeleton from XSD

A

akira

Hello I have generated an XSD file with XMLSPY from XML file which give
me all the elem structure

I would like to generate the XML skeleton of this associated to this
XSD file. Constraint is
each elem of XSD
generate
<_element>
<_name>
</_name>
<_value>
</_value>
</_element>

eg :
XSD:
====
<xs:element name="_pointList">
<xs:complexType>
<xs:sequence>
<xs:element ref="_entries"/>
<xs:element ref="_element" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="_element">
<xs:complexType>
<xs:sequence>
<xs:element ref="_x"/>
<xs:element ref="_y"/>
</xs:sequence>
</xs:complexType>
</xs:element>

XML requested :
===========
<_element>
<_name>_pointList</_name>
<_value>
<_entries>1</_entries>
<_element>
<_name>_pointList_element</_name>
<_value>
<_entries>2</_entries>
<_element>
<_name>_x</_name>
<_value>
<_entries>0</_entries>
</_value>
</_element>
<_element>
<_name>_y</_name>
<_value>
<_entries>0</_entries>
</_value>
</_element>
</_value>
</_element>
</_value>
</_element>

Thx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top