Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > sample on how to generate XML skeleton from XSD

Reply
Thread Tools

sample on how to generate XML skeleton from XSD

 
 
akira
Guest
Posts: n/a
 
      05-15-2006
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Old program to generate skeleton of Finite State Machines Aardalath C Programming 4 01-27-2009 04:15 PM
Generate Server Skeleton from WSDL Rich.Hephner@gmail.com Perl Misc 0 05-23-2007 02:14 PM
Seeking tool to generate skeleton C++ code from header files Baron Samedi C++ 0 05-15-2007 02:16 AM
any tools generate sample XML from XSD? jrefactors@hotmail.com XML 1 02-04-2005 08:13 AM



Advertisments