[xquery-talk] Can XQuery include the path to a node in it's answer?

padmapriya ayyagari asn.padmapriya at gmail.com
Sun Nov 28 17:00:18 PST 2004


Hello,

Could someone please tell me how to write an XQuery for getting the
values for a given node  in the document and also the whole path for
that node in the answer to the XQuery?

For example,

If I say 

document("abc.xml")/site/catgraph/edge , 

then XQuery simply returns the answer but does not include the path
/site/catgraph/edge in the answer. Could someone please tell me how to
do this?

Thanks,
Padmapriya


More information about the talk mailing list