Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Need Help

From: Nicole Kidding <nicole_kidding@-----.--->
To: xmlschema-dev@--.---
Date: 6/14/2004 5:49:00 PM
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 

From ht@i...  Wed Jun 16 08:59:42 2004
Return-Path: <ht@i....


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent