Abstraction levels in xsd

J

JanJaap

Hi,

Is it possible to use xml data (based on xsd) as input other xml data?

I think of somethig like this:

In the xsd file:
....
<xsd:element name="class">
<xsd:attribute name="name" type="xsd:string>
<xsd:sequence>
<xsd:element name="property" type="xsd:string">
</xsd:sequence>
</element>

....

In the xml file:
<class name="car">
<property>width</property>
<property>length</property>
<property>Topspeed</property>
</class>

....

Now I will use the xml file as input for another xml file so I can make this:

<car>
<width>150 cm</width>
<length>400 cm</length>
<Topspeed>140 mph</topspeed>
</car>

Is there any way to do this?

Thnx,

JanJaap
 

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

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,227
Latest member
Daniella65

Latest Threads

Top