Go Back   Velocity Reviews > Newsgroups > XML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

XML - sample on how to generate XML skeleton from XSD

 
Thread Tools Search this Thread
Old 05-15-2006, 03:28 PM   #1
Default sample on how to generate XML skeleton from XSD


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



akira
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump