Querying an element that can occur one or more times is a bit
inconsistent. For example, if there is an xml document
<H1><H2/><H2/></H1>, the first element is queried by $xmldoc.H1.H2[0].
If there is a single element, <H1><H2/></H1>, $xmldoc.H1.H2[0] is
no longer valid. The valid query is now $xmldoc.H1.H2
Querying an element that can occur one or more times is a bit inconsistent. For example, if there is an xml document
<H1><H2/><H2/></H1>
, the first element is queried by $xmldoc.H1.H2[0]. If there is a single element,<H1><H2/></H1>
, $xmldoc.H1.H2[0] is no longer valid. The valid query is now $xmldoc.H1.H2