This returns an entity object given a tree of the form returned by xml_tree.
If it is given a string as an argument, it will automatically generate the parse tree and use it to make the entity instead requiring you to run the string through xml_tree first. Note that it is better to use xtree_doc or xper_doc for converting source XML text directly to an XML entity.
If the argument is an XML tree entity, the function will return it as is, so e.g. redundand calls of xml_tree_doc will have no effect. The only thing xml_tree_doc can alter in the returned value is base URI of the document entity: if base_uri is provided and is not NULL, and argument entity has no base URI set then the provided URI is assigned to the returned entity.
Any other type of argument is illegal, including XML persistent entity.
XML entity object
SQL State | Error Code | Error Text | Description |
---|---|---|---|
declare doc_base varchar; declare doc_tree any; doc_base := 'virt://WS.WS.SYS_DAV_RES.RES_FULL_PATH.RES_CONTENT:/DAV/docsrc/'; doc_tree := xml_tree_doc(xml_tree( xml_uri_get(doc_base, 'virtdocs.xml') ), doc_base); http_value( xslt('virt://WS.WS.SYS_DAV_RES.RES_FULL_PATH.RES_CONTENT:/DAV/stylesheets/html_chapter.xsl', doc_tree ) );