Nikolaos Giannadakis wrote:
> Dear All,
>
> Can you tell what the XPath expression that:
> "selects all C elements that come after A and have a D parent" is.
>
> That is, there might be a schema, which declares the unwanted instances of C
> as integers, while
> the other C declared has some anonymous complexType.
This brings up an interesting limitation of XPaths as they were designed
predicated on the nature of DTDs, where when you defined an element,
that was the definition for that element in any context, and so
//element XPaths would work in just about all cases. XML Schemas throw
that design pattern for a loop, in that, not only does the element
matter, but its entire ancestor list plays into the context of the
element.
Time to fix that one, too.
--
Tom Bradford --- The dbXML Project --- http://www.dbxml.org/
We store your XML data a hell of a lot better than /dev/null