lookup-xml
This function returns the string value of an element defined by lookupXPath
in an XML file (docURL
) given its parent XPath (parentXPath
), the key XPath (keyXPath
), and the value of the key (key
).
Example:
oraext:lookup-xml('file:/d:/country_data.xml', '/Countries/Country', 'Abbreviation', 'FullName', 'UK')
returns the value of the element FullName
child of /Countries/Country
, where Abbreviation = 'UK'
is in the file D:\country_data.xml
.
Signature:
oraext:lookup-xml(docURL, parentXPath, keyXPath, lookupXPath, key)
Arguments:
-
docURL
: The XML file. -
parentXPath
: The parent XPath. -
keyXPath
: The key XPath. -
lookupXPath
: The lookup XPath. -
key
: The key value.
Property IDs:
-
namespace-uri:
http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc
-
namespace-prefix
:oraext