Subject:How to navigate to a ref node Author:Bob Chauvin Date:29 Jan 2006 11:45 PM
Given the snippit below, what would the search string for the beginning of the my:Matters so I could get all of it's elements (ie, that the ref: Matter includes a code, notes, mattertype and industrycode)?
Notes: I'm trying to read my xsd and build xml to match those requirements, based on data from a sql data source.
Subject:How to navigate to a ref node Author:Tony Lavinio Date:30 Jan 2006 09:02 AM
Well, the XPath to the Matters elements would probably be the following,
but it's not clear what you're asking, since you asking in the context of
an XQuery forum.
Subject:How to navigate to a ref node Author:Tony Lavinio Date:30 Jan 2006 02:12 PM
It does use named elements; the [1] just gets you to whichever one you
were on. If you remove the [1] (or whatever number), it will select the
set that match that node.
Also, if you are looking for a particular value, like the ZZZ in this:
<abc><def>AAA</def><def>ZZZ</def></abc>
You would take off the [1] and put instead [. = 'ZZZ']