Page 1 of 1

xpath

Posted: Thu Sep 16, 2004 10:32 pm
by xpathman
Does any one know if Xpath can be used to locate a specific xml element or its attribute and if so reproduce a larger XML fragment (ie including parent nodes and grand parent nodes etc) of which the element is a part of.

Posted: Thu Sep 16, 2004 11:14 pm
by george
Hi,

According with the XPath Specification [1]:
XPath is a language for addressing parts of an XML document, designed to be used by both XSLT and XPointer.

You can use XSLT to accomplish what you described in your post.

[1] http://www.w3.org/TR/xpath

Best Regards,
George

XQuery

Posted: Fri Sep 24, 2004 10:16 pm
by xpathman
Does any one know if XQuery can perform this task on its own?

Posted: Tue Sep 28, 2004 11:36 am
by george
Hi,

Yes, you can use also XQuery for that.

Best Regards,
George

Posted: Mon Oct 04, 2004 3:57 pm
by xpathman
thanks George