|
-
September 5th, 2004, 09:16 PM
#1
Help, about Schema
Hi ,
I have an xml file which has the following requirement :
A root node will have :
i> one or more required nodes (can occurs 1 or n times) and
ii> some optional nodes (can occurs 0 or 1 times) and
iii> some optional nodes (can occurs 0 or n times) and
iiii> all the nodes are in any orders.
e.g.
<root>
<title>abc</title>
<creator>benny</creator>
<creator>danny</creator>
<date>yyyy-mm-dd</date>
</root>
notes:
the title node is a required node (occurs 1 or n times)
the creator nodes are optional nodes (occurs 0 or n times)
the date node is a node that cannot be repeated (occurs 0 or 1 times)
all these nodes can list in any order.
I'm not able to create a schema with the above restrction using the existing XSD indicaters( "All", "choice" or "sequence") .
hope somebody can give me some idea
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|