PREHOOK: query: DESCRIBE FUNCTION xpath_string
PREHOOK: type: DESCFUNCTION
POSTHOOK: query: DESCRIBE FUNCTION xpath_string
POSTHOOK: type: DESCFUNCTION
xpath_string(xml, xpath) - Returns the text contents of the first xml node that matches the xpath expression
PREHOOK: query: DESCRIBE FUNCTION EXTENDED xpath_string
PREHOOK: type: DESCFUNCTION
POSTHOOK: query: DESCRIBE FUNCTION EXTENDED xpath_string
POSTHOOK: type: DESCFUNCTION
xpath_string(xml, xpath) - Returns the text contents of the first xml node that matches the xpath expression
Example:
> SELECT xpath_string('bcc','a/c') FROM src LIMIT 1;
'cc'
> SELECT xpath_string('b1b2','a/b') FROM src LIMIT 1;
'b1'
> SELECT xpath_string('b1b2','a/b[2]') FROM src LIMIT 1;
'b2'
> SELECT xpath_string('b1b2','a') FROM src LIMIT 1;
'b1b2'
PREHOOK: query: SELECT xpath_string ('bbcc', 'a') FROM src LIMIT 1
PREHOOK: type: QUERY
PREHOOK: Input: default@src
#### A masked pattern was here ####
POSTHOOK: query: SELECT xpath_string ('bbcc', 'a') FROM src LIMIT 1
POSTHOOK: type: QUERY
POSTHOOK: Input: default@src
#### A masked pattern was here ####
bbcc
PREHOOK: query: SELECT xpath_string ('bbcc', 'a/b') FROM src LIMIT 1
PREHOOK: type: QUERY
PREHOOK: Input: default@src
#### A masked pattern was here ####
POSTHOOK: query: SELECT xpath_string ('bbcc', 'a/b') FROM src LIMIT 1
POSTHOOK: type: QUERY
POSTHOOK: Input: default@src
#### A masked pattern was here ####
bb
PREHOOK: query: SELECT xpath_string ('bbcc', 'a/c') FROM src LIMIT 1
PREHOOK: type: QUERY
PREHOOK: Input: default@src
#### A masked pattern was here ####
POSTHOOK: query: SELECT xpath_string ('bbcc', 'a/c') FROM src LIMIT 1
POSTHOOK: type: QUERY
POSTHOOK: Input: default@src
#### A masked pattern was here ####
cc
PREHOOK: query: SELECT xpath_string ('bbcc', 'a/d') FROM src LIMIT 1
PREHOOK: type: QUERY
PREHOOK: Input: default@src
#### A masked pattern was here ####
POSTHOOK: query: SELECT xpath_string ('bbcc', 'a/d') FROM src LIMIT 1
POSTHOOK: type: QUERY
POSTHOOK: Input: default@src
#### A masked pattern was here ####
PREHOOK: query: SELECT xpath_string ('b1b2', '//b') FROM src LIMIT 1
PREHOOK: type: QUERY
PREHOOK: Input: default@src
#### A masked pattern was here ####
POSTHOOK: query: SELECT xpath_string ('b1b2', '//b') FROM src LIMIT 1
POSTHOOK: type: QUERY
POSTHOOK: Input: default@src
#### A masked pattern was here ####
b1
PREHOOK: query: SELECT xpath_string ('b1b2', 'a/b[1]') FROM src LIMIT 1
PREHOOK: type: QUERY
PREHOOK: Input: default@src
#### A masked pattern was here ####
POSTHOOK: query: SELECT xpath_string ('b1b2', 'a/b[1]') FROM src LIMIT 1
POSTHOOK: type: QUERY
POSTHOOK: Input: default@src
#### A masked pattern was here ####
b1
PREHOOK: query: SELECT xpath_string ('b1b2', 'a/b[2]') FROM src LIMIT 1
PREHOOK: type: QUERY
PREHOOK: Input: default@src
#### A masked pattern was here ####
POSTHOOK: query: SELECT xpath_string ('b1b2', 'a/b[2]') FROM src LIMIT 1
POSTHOOK: type: QUERY
POSTHOOK: Input: default@src
#### A masked pattern was here ####
b2
PREHOOK: query: SELECT xpath_string ('b1b2', 'a/b[@id="b_2"]') FROM src LIMIT 1
PREHOOK: type: QUERY
PREHOOK: Input: default@src
#### A masked pattern was here ####
POSTHOOK: query: SELECT xpath_string ('b1b2', 'a/b[@id="b_2"]') FROM src LIMIT 1
POSTHOOK: type: QUERY
POSTHOOK: Input: default@src
#### A masked pattern was here ####
b2