Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help writing query for XQSequence object

Status
Not open for further replies.

varocho

Programmer
Dec 4, 2000
238
0
0
US
I'm using the XQuery API, and I need help writing the query for the XQSequence object.

My XML document has a root element named 'SensorML', which has a single child element named 'member', which has a single child element named 'System'.

My query for the XQSequence object looks like this:

"declare namespace gml = 'declare namespace swe = 'doc('file:///C://DRT1201BSensorMLDoc.xml')//SensorML/member/System"

I want to loop through all of the child elements of the "System" element, but I'm not seeing any output from my code indicating that this is happening. Any ideas as to what I need to change/correct?
 
Ok, I figured out my mistake, I needed to prefix element names with namespace IDs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top