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


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,

   <Command1 type="NONE" class="A">
   <Command2 type="ABC" class="B">

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.


Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
Received on Tuesday, 15 June 2004 20:52:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:22 UTC