473,387 Members | 1,497 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

May 15 '06 #1
0 988

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Edvard Majakari | last post by:
Greetings, fellow Pythonistas! I'm about to create three modules. As an avid TDD fan I'd like to create typical 'use-cases' for each of these modules. One of them is rather large, and I wondered...
1
by: Kyndig | last post by:
Hi group, I am working on retrieving/storing information in a MySQL database that requires the rows of the db scheme to be expandable. As an example of what I am trying to do: You want to store...
6
by: | last post by:
I'm new to VS.NET, C#, and the enumerated datatype. I'm told that VS.NET 2005 Intellisense will pop up the members of an enum as a selection list if you are using the enum as a method parameter....
0
by: aurora | last post by:
I have a question regarding code examples in the msdn cd. For example I will refer to the help page titled "Using TCP Services" As we can see, the code below is supposed to be for a console...
0
by: feng | last post by:
I am getting error between my local code, that's making call to a remote object, and the called remote code. The error occoured after my remote object returns (I can debug to that point. And it...
8
by: Bill Rust | last post by:
I've created an "Add Item" wizard for VB.NET 2003 that allows a user to add a specialized class that works with my application framework. In the wizard, the user can select the interfaces they...
1
by: Nettar | last post by:
Hi, Is it possible to generate a sample DOM tree for a given XSD programatically using Java? I know that some tools can generate a sample XML for the given XSD. I want to do this...
1
by: =?Utf-8?B?RGF2aWQgR0I=?= | last post by:
In the bad old days, one of my favourite tricks was to ask senior Cobol programmers how many 'divisions' a Cobol program had, and what their names were. THey NEVER new. Because NO ONE EVER...
2
by: davidson1 | last post by:
Hai friends, To display skeleton of table we have in oracle desc student; name char(200) age number(10) In SQLSERVER do we have any command to display skeleton of table...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.