467,915 Members | 1,651 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,915 developers. It's quick & easy.

schema for different complex elements based on attribute value

Hi,

I have the following xml

<rootElem>
<child type="Single">
<!-- if type is "single", then we can have only 1 of the
following element with default for directory as "1"
-->
<childOfChild>
<!-- More elements here -->
</childOfChild>
</child>
<child type="Multiple">
<!-- if type is "Multiple", then we can have more that one
of the following element. The contents of this element
is same as that of in the "Single" case
-->
<childOfChild>
<!-- More elements here -->
</childOfChild>
</child>
</rootElem>

How do i write a schema for this multiple child "type" condition, if at
all it is possible ?

Thanks
Am

Jul 20 '05 #1
  • viewed: 1069
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Gregg Williams | last post: by
2 posts views Thread by Chuck Bowling | last post: by
reply views Thread by SkyScrap | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.