Hi Gurbeer,
Not entirely sure what you try to achieve, but did you try something like:
xdmp:unpath("doc($uris)//ba")[text() eq "ABC"]
Kind regards,
Geert
*Van:* [email protected] [mailto:
[email protected]] *Namens *Singh, Gurbeer
*Verzonden:* maandag 12 augustus 2013 19:48
*Aan:* [email protected]
*Onderwerp:* [MarkLogic Dev General] Determine full Xml path
Is there any way to get full Xpath of a expression
I have a XML like this, I want XPATH for ba à ABC
Trying something like this xdmp:unpath("doc($uris)//ba")
doc($uris)//ba/text() eq ABC"
<recdetails>
<rec>
<version>
<a></a>
<b></b>
<balist>
<ba>ABC</ba>
<ba>DEF</ba>
<ba>GHI</ba>
</ balist >
</version>
<version>
<a></a>
<b></b>
<balist>
<ba>ABC</ba>
<ba>DEF</ba>
<ba>GHI</ba>
</ balist >
</version>
<version>
<a></a>
<b></b>
<balist>
<ba>ABC</ba>
<ba>DEF</ba>
<ba>GHI</ba>
</ balist >
</version>
</rec>
< recdetails >
------------------------------
NOTICE: Morgan Stanley is not acting as a municipal advisor and the
opinions or views contained herein are not intended to be, and do not
constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall
Street Reform and Consumer Protection Act. If you have received this
communication in error, please destroy all electronic and paper copies and
notify the sender immediately. Mistransmission is not intended to waive
confidentiality or privilege. Morgan Stanley reserves the right, to the
extent permitted under applicable law, to monitor electronic
communications. This message is subject to terms available at the following
link: http://www.morganstanley.com/disclaimers If you cannot access these
links, please notify us by reply message and we will send the contents to
you. By messaging with Morgan Stanley you consent to the foregoing.
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general