Re: XML Schema:

I understand that you may have particular reasons for doing things this 
way, but it sounds as if the first few elements of your example really are 
in a group of some significance.  It's generally good practice in XML to 
explicitly mark up groupings that are significant.  Would it make sense to 
change your format to:

<TestScript>
  <ScriptInfo>
    <Description>My Test Script</Description>
    <FileName>sample.in</FileName>
    <Usage>Usage description</Usage>
  <ScriptInfo>
  <PreTest>
     .....
  </PreTest>
  <Test> 
     .....
  </Test>
  <PostTest> 
     .....
  </PostTest>
</TestScript>

This is arguably better XML markup, and XML schema can describe it in the 
manner you would like.  I.e., you can make the content of the ScriptInfo 
an <ALL> group, and make a <SEQUENCE> of the <ScriptInfo>, <PreTest>, 
<Test>, and <PostTest>.  I'm not sure, but I'm guessing there is some 
reason you want those first few elements together, and indeed I've guessed 
that it's to describe some test script.  Would this work for you?  Many of 
us would consider it "better" XML.

--------------------------------------
Noah Mendelsohn 
IBM Corporation
One Rogers Street
Cambridge, MA 02142
1-617-693-4036
--------------------------------------

Received on Wednesday, 5 November 2003 09:57:47 UTC