I have a schema with an element name as . I was able to insert XML docs using the xplorer into the schema.
When i try to query tag using XQuery from (Interactive Interface) i get syntax error.
for $b in (input()/doc_root/item
return $b
The above gives syntax error. Please help me out on this.Is there any limitation not use as a tag in the XML.
Thanks
Mahesh
This is in the release notes (relnotes/rnissues.htm#d0e1234):
And sure enough, ?item? is in the list of reserved names (see http://w3.org/TR/xquery/#id-reserved-fn-names). So your query should be:
for $b in input()/doc_root/:item
return $b