BE_XPath

BE_XPath ( xml ; xpath {; namespaceList ; asText } )

This finds the first instance of a node at the path xpath within the text xml. This function is based on the libxml library which only supports XPath 1.0 http://xmlsoft.org

Version : 1.2
Version : 2.2 : Added the optional asText parameter.

Parameters :
xml : the XML text to use.
xpath : the path to the node you require.
namespaceList ( optional ) : Namespace list. Format "prefix1=href1 prefix2=href2..."
asText ( optional ) : Whether to return the XML nodeset as text instead of the standard XPath result. Allows you to get raw XML from the source.

Result : the text content of the nodes at the xpath location.

Examples :

BE_XPath ( $$XML ; "/abc:checkUserResponse/abc:result/abc:accountDetails/@type" ; "abc=http://xml.m4u.com.au/2009" )

Have more questions? Submit a request

0 Comments

Article is closed for comments.