W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2004

Need Help

From: Nicole Kidding <nicole_kidding@yahoo.com>
Date: Tue, 15 Jun 2004 00:48:51 -0700 (PDT)
Message-ID: <20040615074851.67735.qmail@web50909.mail.yahoo.com>
To: xmlschema-dev@w3.org

Hi,

I am not sure whether this is the right place to ask
such questions, but nevertheless, hope someone can
help me with this.

I am currently on a reverse-engineering project to
derive a schema from an existing xml document. In the
course of doing so, I encountered a situation whereby
the name of the element is variable but the type is
fixed. For example,

<Commands>
   <Command1 type="NONE" class="A">
       <ATT_TREE/>
       <CONST_TREE/>
   </Command1>
   <Command2 type="ABC" class="B">
       <ATT_TREE/>
       <CONST_TREE/>
   </Command1>
</Commands>

As illustrated, the child elements of <Commands> all
have the same attributes and elements, however the
name of the element is decided by the user at random.

How can I write my schema for this, allowing the names
to be dynamic, yet still restricting that all the
child elements are of the same type?

Appreciate any help and advice on this. Thanks a lot.

Regards,
Lee


		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 
Received on Tuesday, 15 June 2004 20:52:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:44 GMT