lookup-xml

この関数は、XMLファイル(docURL)で、親XPath (parentXPath)、キーXPath (keyXPath)およびキー値(key)を指定されたlookupXPathで定義されている要素の文字列値を返します。

例:

oraext:lookup-xml('file:/d:/country_data.xml', '/Countries/Country', 'Abbreviation', 'FullName', 'UK')は、ファイルD:\country_data.xmlで、Abbreviation = 'UK'である/Countries/Countryの子要素FullNameの値を返します。

シグネチャ:

oraext:lookup-xml(docURL, parentXPath, keyXPath, lookupXPath, key)

引数:

  • docURL: XMLファイル。

  • parentXPath: 親XPath。

  • keyXPath: キーXPath。

  • lookupXPath: 参照XPath。

  • key: キー値。

プロパティID:

  • namespace-uri: http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc

  • namespace-prefix: oraext