[MarkLogic Dev General] i have dobt in xpath
dsokolsky at marklogic.com
Wed Dec 3 22:55:48 PST 2008
If you just want the title nodes from the database, the following query
will do that:
You cannot bind an XPath to a variable--you can bind the results of an
XPath, but not the XPath itself. If you need to use your string
variable as an XPath, you can use xdmp:eval or xdmp:value to construct a
new query from the string.
From: general-bounces at developer.marklogic.com
[mailto:general-bounces at developer.marklogic.com] On Behalf Of
Sent: Wednesday, December 03, 2008 9:15 PM
To: general at developer.marklogic.com
Subject: [MarkLogic Dev General] i have dobt in xpath
I have a doubt in XPTH.
i have xml content in a variable and xpath is also in a node.
how i can get nodes form content using the xpath varaible.
can any one suggest me.
let $content :="<books><book><title>C
how i can get title node from content, can u help meout.
Note: i have near 10 xml files in my database with same structure.
General mailing list
General at developer.marklogic.com
More information about the General