PL/SQL Packages and Types Reference 10g Release 1 (10.1) Part Number B10802-01 |
|
|
View PDF |
The DBMS_XMLDOM
package is used to access XMLType
objects, and implements the Document Object Model (DOM), an application programming interface for HTML and XML documents.
This chapter contains the following topics:
The Document Object Model (DOM) is an application programming interface (API) for HTML and XML documents. It defines the logical structure of documents, and the manner in which they are accessed and manipulated. In the DOM specification, the term "document" is used in the broad sense. XML is being increasingly used to represent many different kinds of information that may be stored in diverse systems. This information has been traditionally be seen as "data"; nevertheless, XML presents this data as documents, and the DBMS_XMLDOM
package allows you access to both schema-based and non schema-based documents.
With DOM, anything found in an HTML or XML document can be accessed, changed, deleted, or added using the Document Object Model, with a few exceptions. In particular, the DOM interfaces for the XML internal and external subsets have not yet been specified.
One important objective of the W3C DOM specification is to provide a standard programming interface that can be used in a wide variety of environments, programming languages, and applications. Because the DOM standard is object-oriented while PL/SQL is essentially a procedural language, some changes had to be made:
Node
, Element
, and others have equivalent PL/SQL types DOMNode
, DOMElement
, respectively.DOMException
codes such as WRONG_DOCUMENT_ERR
, HIERARCHY_REQUEST_ERR
, and others, have similarly named PL/SQL exceptions.ELEMENT_NODE
, ATTRIBUTE_NODE
, and others, have similarly named PL/SQL constants.APPENDCHILD Function
on a DOMNode
n
, the APPENDCHILD Function
PL/SQL function is provided.setAttribute
on a DOMElement elem
, use SETATTRIBUTE Procedures
PL/SQL procedure .DOM defines an inheritance hierarchy. For example, Document
, Element
, and Attr
are defined to be subtypes of Node
(see Figure 113-1). Thus, a method defined in the Node
interface should be available in these as well. Since such inheritance is not supported in PL/SQL, it is implemented through direct invocation of the MAKENODE
function. Calling MAKENODE
on various DOM types converts these types into a DOMNode
. The appropriate functions or procedures that accept DOMNode
s can then be called to operate on these types. If, subsequently, type specific functionality is desired, the DOMNode
can be converted back into the original type by the make
XXX
functions, where DOM
XXX
is the desired DOM type.
Text description of the illustration arpls010.gif
The implementation of this interface follows the REC-DOM-Level-1-19981001.
Defined constants of DBMS_XMLDOM
are listed in Table 113-1.
The following types for DBMS_XMLDOM.DOMTYPE
are defined in Table 113-2:
The exceptions listed in Table 113-3 are defined for DBMS_XMLDOM
:
DBMS_XMLDOM
subprograms are divided into groups according to W3C Interfaces.
Method | Description |
---|---|
Tests if the | |
Casts the |
Method | Description |
---|---|
Tests if the comment is | |
Casts the Comment to a node. |
Method | Description |
---|---|
Frees the specified document fragment. | |
Tests if the DocumentFragment is | |
Casts the Document Fragment to a node. | |
Writes the contents of a document fragment into a buffer. |
Method | Description |
---|---|
Retrieves the notation name of the entity. | |
Retrieves the public Id of the entity. | |
Retrieves the system Id of the entity. | |
Tests if the Entity is | |
Casts the Entity to a node. |
Method | Description |
---|---|
Tests if the | |
Casts the |
Method | Description |
---|---|
Tests if the | |
Tests if the |
Method | Description |
---|---|
Retrieves the number of items in the list. | |
Tests if the | |
Retrieves the item given the index in the |
Method | Description |
---|---|
Retrieves the public Id of the notation. | |
Retrieves the system Id of the notation. | |
Tests if the Notation is | |
Casts the notation to a node. |
Method | Description |
---|---|
Tests if the text is | |
Casts the text to a node. | |
Splits the contents of the text node into 2 text nodes. |
Subprogram | Description |
---|---|
Adopts a node from another document (see DOMNode Subprograms) | |
Appends a new child to the node (see DOMNode Subprograms) | |
Appends the given data to the node data (see DOMCharacterData Subprograms) | |
Clones the node (see DOMNode Subprograms) | |
Creates an Attribute (see DOMDocument Subprograms) | |
Creates a | |
Creates a Comment node (see DOMDocument Subprograms) | |
Creates a new Document (see DOMDocument Subprograms) | |
Creates a new Document Fragment (see DOMDocument Subprograms) | |
Creates a new Element (see DOMDocument Subprograms) | |
Creates an Entity reference (see DOMDocument Subprograms) | |
Creates a Processing Instruction (see DOMDocument Subprograms) | |
Creates a Text node (see DOMDocument Subprograms) | |
Deletes the data from the given offSets (see DOMCharacterData Subprograms) | |
Finds the specified entity in the document type (see DOMDocumentType Subprograms) | |
Finds the specified notation in the document type (see DOMDocumentType Subprograms) | |
Frees the document fragment (see DOMDocument Subprograms) | |
Frees the specified document fragment (see DOMDocumentFragment Subprograms) | |
Frees the document (see DOMDocument Subprograms) | |
Frees all resources associated with the node (see DOMNode Subprograms). | |
Retrieves the attribute node by name (see DOMElement Subprograms) | |
Retrieves the attributes of the node (see DOMNode Subprograms) | |
Retrieves the attribute node by name (see DOMElement Subprograms) | |
Retrieves the children of the node (see DOMNode Subprograms | |
Retrieves children of the element by tag name (see DOMCharacterData Subprograms) | |
Retrieves
| |
Retrieves the DTD of the document (see DOMDocument Subprograms) | |
Retrieves the root element of the document (see DOMDocument Subprograms) | |
Retrieves
| |
Retrieves the nodemap of entities in the Document type (see DOMDocumentType Subprograms) | |
Retrieves
| |
Retrieves the first child of the node (see DOMNode Subprograms) | |
Retrieves the DOM implementation (DOMDocument Subprograms) | |
Retrieves the last child of the node (see DOMNode Subprograms) | |
Retrieves
| |
Retrieves
| |
Retrieves
| |
Retrieves
| |
Retrieves
| |
Retrieves the next sibling of the node (see DOMNode Subprograms) | |
Retrieves the Name of the Node (see DOMNode Subprograms) | |
Retrieves the Type of the node (see DOMNode Subprograms) | |
Retrieves the Value of the Node (see DOMNode Subprograms) | |
Retrieves the notation name of the entity (see DOMEntity Subprograms) | |
Retrieves the nodemap of the notations in the Document type (see DOMDocumentType Subprograms) | |
Retrieves the target of the processing instruction (see DOMProcessingInstruction Subprograms) | |
Retrieves the owner document of the node (see DOMNode Subprograms) | |
Retrieves the Element node, parent of the attribute (see DOMAttr Subprograms) | |
Retrieves the parent of this node (see DOMNode Subprograms) | |
Retrieves the namespace prefix (see DOMNode Subprograms) | |
Retrieves the previous sibling of the node (see DOMNode Subprograms) | |
Retrieves
| |
Retrieves
| |
Retrieves the associated schema URI (see DOMNode Subprograms) | |
Tests if attribute was specified in the element. (see DOMAttr Subprograms) | |
Retrieves the standalone property of the document (see DOMDocument Subprograms) | |
Retrieves
| |
Retrieves the Tag name of the element (see DOMElement Subprograms) | |
Retrieves the value of the attribute (see DOMAttr Subprograms) | |
Retrieves the version of the document (DOMDocument Subprograms) | |
Retrieves the | |
Tests if the node has attributes (see DOMNode Subprograms) | |
Tests if an attribute exists (see DOMElement Subprograms) | |
Tests if the node has child nodes (see DOMNode Subprograms) | |
Tests if the | |
Imports a node from another document (see DOMNode Subprograms) | |
Inserts a child before the reference child (see DOMNode Subprograms) | |
Inserts the data in the node at the given offSets (see DOMCharacterData Subprograms) | |
Tests
| |
ISNULL Functions (contd.) |
Tests
|
Retrieves
| |
Casts the node to an Attribute (see DOMNode Subprograms) | |
Casts the node to a CData Section (see DOMNode Subprograms) | |
Casts the node to Character Data (see DOMNode Subprograms) | |
Casts the node to a Comment (see DOMNode Subprograms) | |
Casts the node to a DOM Document (see DOMNode Subprograms) | |
Casts the node to a DOM Document Fragment (see DOMNode Subprograms) | |
Casts the node to a DOM Document Type (see DOMNode Subprograms) | |
Casts the node to a DOM Element (see DOMNode Subprograms) | |
Casts the node to a DOM Entity (see DOMNode Subprograms) | |
Casts the node to a DOM Entity Reference (see DOMNode Subprograms) | |
Casts
| |
(contd.) |
Casts
|
Casts the node to a DOM Notation (see DOMNode Subprograms) | |
Casts the node to a DOM Processing Instruction (see DOMNode Subprograms) | |
Casts the node to a DOM Text (see DOMNode Subprograms) | |
Creates a new document (see DOMDocument Subprograms) | |
Normalizes the text children of the element (see DOMElement Subprograms) | |
Removes the attribute specified by the name (see DOMElement Subprograms) | |
Removes the attribute node in the element (see DOMElement Subprograms) | |
Removes a specified child from a node (see DOMNode Subprograms) | |
Removes the item specified by name (see DOMNamedNodeMap Subprograms) | |
Replaces the old child with a new child (see DOMNode Subprograms) | |
Changes a range of characters in the node (see DOMCharacterData Subprograms) | |
Resolve the prefix to a namespace URI (see DOMElement Subprograms) | |
Sets the attribute specified by the name (see DOMElement Subprograms) | |
Sets the attribute node in the element (see DOMElement Subprograms) | |
Sets
| |
Sets the item in the map specified by the name (see DOMNamedNodeMap Subprograms) | |
Sets the Value of the node (see DOMNode Subprograms) | |
Sets the namespace prefix (see DOMNode Subprograms) | |
Sets the standalone property of the document (see DOMDocument Subprograms) | |
Sets the value of the attribute (see DOMAttr Subprograms) | |
Sets the version of the document (see DOMDocument Subprograms) | |
Splits the contents of the text node into 2 text nodes (see DOMText Subprograms) | |
Retrieves the substring of the data (DOMCharacterData Subprograms) | |
Writes
| |
Writes
| |
Writes
|
This procedure adopts a node from another document; returns this new node.
DBMS_XMLDOM.ADOPTNODE( doc IN DOMDocument, importedNode IN DOMNode) RETURN DOMNode;
Parameter | Description |
---|---|
|
Document that is adopting the node. |
|
Node to adopt. |
This function adds the node NEWCHILD
to the end of the list of children of this node, and returns the newly added node. If the NEWCHILD
is already in the tree, it is first removed.
DBMS_XMLDOM.APPENDCHILD( n IN DOMNode, newChild IN DOMNode) RETURN DOMNode;
Parameter | Description |
---|---|
|
|
|
The child to be appended to the list of children of node |
This procedure appends the string to the end of the character data of the node. Upon success, data provides access to the concatenation of data and the specified string argument.
DBMS_XMLDOM.APPENDDATA( cd IN DOMCharacterData, arg IN VARCHAR2);
Parameter | Description |
---|---|
|
|
|
The data to append to the existing data. |
This function returns a duplicate of this node; serves as a generic copy constructor for nodes. The duplicate node has no parent; its parent node is NULL
.
Cloning an Element copies all attributes and their values, including those generated by the XML processor to represent defaulted attributes, but this method does not copy any text it contains unless it is a deep clone, since the text is contained in a child Text node. Cloning an Attribute directly, as opposed to be cloned as part of an Element cloning operation, returns a specified attribute (specified is TRUE
). Cloning any other type of node simply returns a copy of this node.
DBMS_XMLDOM.CLONENODE( n IN DOMNode, deep IN BOOLEAN) RETURN DOMNode;
Parameter | Description |
---|---|
|
|
|
Determines if children are to be cloned. |
This function creates a DOMAttr
node.
Creates a DOMAttr
with the specified name:
DBMS_XMLDOM.CREATEATTRIBUTE( doc IN DOMDocument, name IN VARCHAR2) RETURN DOMAttr;
Creates a DOMAttr
with the specified name and namespace URI:
DBMS_XMLDOM.CREATEATTRIBUTE( doc IN DOMDocument, name IN VARCHAR2, ns IN VARCHAR2) RETURN DOMAttr;
Parameter | Description |
---|---|
|
|
|
New attribute name. |
|
Namespace. |
This function creates a DOMCDATASection
node.
DBMS_XMLDOM.CREATECDATASECTION( doc IN DOMDocument, data IN VARCHAR2) RETURN DOMCDATASection;
Parameter | Description |
---|---|
|
|
|
Content of the |
This function creates a DOMComment
node.
DBMS_XMLDOM.CREATECOMMENT( doc IN DOMDocument, data IN VARCHAR2) RETURN DOMComment;
Parameter | Description |
---|---|
|
|
|
Content of the |
This function creates a DOMDocument
with specified namespace URI, root element name, DTD.
DBMS_XMLDOM.CREATEDOCUMENT( namespaceURI IN VARCHAR2, qualifiedName IN VARCHAR2, doctype IN DOMType:=NULL) RETURN DOMDocument;
Parameter | Description |
---|---|
|
Namespace URI. |
|
Root element name. |
|
Document type. |
This function creates a DOMDocumentFragment
.
DBMS_XMLDOM.CREATEDOCUMENTFRAGMENT( doc IN DOMDocument) RETURN DOMDocumentFragment;
Parameter | Description |
---|---|
|
|
Creates a DOMElement
.
Creates a DOMElement
with specified name:
DBMS_XMLDOM.CREATEELEMENT( doc IN DOMDocument, tagName IN VARCHAR2) RETURN DOMElement;
Creates a DOMElement
with specified name and namespace URI:
DBMS_XMLDOM.CREATEELEMENT( doc IN DOMDocument, tagName IN VARCHAR2, ns IN VARCHAR2) RETURN DOMElement;
Parameter | Description |
---|---|
|
|
|
Tagname for new |
|
Namespace. |
This function creates a DOMEntityReference
node.
DBMS_XMLDOM.CREATEENTITYREFERENCE( doc IN DOMDocument, name IN VARCHAR2) RETURN DOMEntityReference;
Parameter | Description |
---|---|
|
|
|
New entity reference name. |
This function creates a DOMProcessingInstruction
node.
DBMS_XMLDOM.CREATEPROCESSINGINSTRUCTION( doc IN DOMDocument, target IN VARCHAR2, data IN VARCHAR2) RETURN DOMProcessingInstruction;
Parameter | Description |
---|---|
|
|
|
Target of the new processing instruction. |
|
Content data of the new processing instruction. |
This function creates a DOMText
node.
DBMS_XMLDOM.CREATETEXTNODE( doc IN DOMDocument, data IN VARCHAR2) RETURN DOMText;
Parameter | Description |
---|---|
|
|
|
Content of the |
This procedure removes a range of characters from the node. Upon success, data and length reflect the change.
DBMS_XMLDOM.DELETEDATA( cd IN DOMCharacterData, offset IN NUMBER, cnt IN NUMBER);
Parameter | Description |
---|---|
|
|
|
The offset from which to delete the data. |
|
The number of characters (starting from offset) to delete. |
This function finds an entity in the given DTD; returns that entity if found.
DBMS_XMLDOM.FINDENTITY( dt IN DOMDocumentType, name IN VARCHAR2, par IN BOOLEAN) RETURN DOMEntity;
Parameter | Description |
---|---|
|
The DTD. |
|
Entity to find. |
|
Flag to indicate type of entity; |
This function finds the notation in the given DTD; returns it, if found.
DBMS_XMLDOM.FINDNOTATION( dt IN DOMDocumentType, name IN VARCHAR2) RETURN DOMNotation;
Parameter | Description |
---|---|
|
The DTD. |
|
The notation to find. |
This procedure frees the specified document fragment.
DBMS_XMLDOM.FREEDOCFRAG( df IN DOMDocumentFragment);
Parameter | Description |
---|---|
|
DOM document fragment. |
This procedure frees the specified document fragment.
DBMS_XMLDOM.FREEDOCFRAG( df IN DOMDocumentFragment);
Parameter | Description |
---|---|
|
DOM document fragment. |
This procedure frees DOMDocument
object.
DBMS_XMLDOM.FREEDOCUMENT( doc IN DOMDocument);
Parameter | Description |
---|---|
|
|
This procedure frees all resources associated with a Node
.
DBMS_XMLDOM.FREENODE( n IN DOMNode);
Parameter | Description |
---|---|
|
|
Returns the value of a DOMElement
's attribute by name.
Returns the value of a DOMElement
's attribute by name:
DBMS_XMLDOM.GETATTRIBUTE( elem IN DOMElement, name IN VARCHAR2) RETURN VARCHAR2;
Returns the value of a DOMElement
's attribute by name and namespace URI:
DBMS_XMLDOM.GETATTRIBUTE( elem IN DOMElement, name IN VARCHAR2, ns IN VARCHAR2) RETURN VARCHAR2;
Parameter | Description |
---|---|
|
The |
|
Attribute name. |
|
Namespace. |
This function retrieves a NamedNodeMap
containing the attributes of this node (if it is an Element) or NULL
otherwise.
DBMS_XMLDOM.GETATTRIBUTES( n IN DOMNode) RETURN DOMNamedNodeMap;
Parameter | Description |
---|---|
|
|
Returns an attribute node from the DOMElement
by name.
Returns an attribute node from the DOMElement
by name:
DBMS_XMLDOM.GETATTRIBUTENODE( elem IN DOMElement, name IN VARCHAR2) RETURN DOMAttr;
Returns an attribute node from the DOMElement
by name and namespace URI:
DBMS_XMLDOM.GETATTRIBUTENODE( elem IN DOMElement, name IN VARCHAR2, ns IN VARCHAR2) RETURN DOMAttr;
Parameter | Description |
---|---|
|
The |
|
Attribute name; * matches any attribute. |
|
Namespace. |
This function retrieves a NodeList
that contains all children of this node. If there are no children, this is a NodeList
containing no nodes.
DBMS_XMLDOM.GETCHILDNODES( n IN DOMNode) RETURN DOMNodeList;
Parameter | Description |
---|---|
|
|
Returns the children of the DOMElement
.
Returns children of the DOMElement
given the tag name:
DBMS_XMLDOM.GETCHILDRENBYTAGNAME( elem IN DOMElement, name IN VARCHAR2) RETURN DOMNodeList;
Returns children of the DOMElement
given the tag name and namespace:
DBMS_XMLDOM.GETCHILDRENBYTAGNAME( elem IN DOMElement, name IN VARCHAR2, ns IN VARCHAR2) RETURN DOMNodeList;
Parameter | Description |
---|---|
|
The |
|
Tag name. |
|
Namespace. |
This function is overloaded. The specific forms of functionality are described alongside the syntax declarations.
Gets the character data of the node that implements this interface (See Also: DOMCharacterData Subprograms):
DBMS_XMLDOM.GETDATA( cd IN DOMCharacterData) RETURN VARCHAR2;
Returns the content data of the DOMProcessingInstruction
(See Also: DOMProcessingInstruction Subprograms):
DBMS_XMLDOM.GETDATA( pi IN DOMProcessingInstruction) RETURN VARCHAR2;
Parameter | Description |
---|---|
|
|
|
The |
This function returns the DTD associated to the DOMDocument
.
DBMS_XMLDOM.GETDOCTYPE( doc IN DOMDocument) RETURN domdocumenttype;
Parameter | Description |
---|---|
|
|
This function returns the root element of the DOMDocument
.
DBMS_XMLDOM.GETDOCUMENTELEMENT( doc IN DOMDocument) RETURN DOMElement;
Parameter | Description |
---|---|
|
|
This function is overloaded. The specific forms of functionality are described alongside the syntax declarations.
Returns a DOMNode
List of all the elements with a given tagname (See Also: DOMDocument Subprograms):
DBMS_XMLDOM.GETELEMENTSBYTAGNAME( doc IN DOMDocument, tagname IN VARCHAR2) RETURN DOMNodeList;
Returns the element children of the DOMElement
given the tag name (See Also: DOMElement Subprograms):
DBMS_XMLDOM.GETELEMENTSBYTAGNAME( elem IN DOMElement, name IN VARCHAR2) RETURN DOMNodeList;
Returns the element children of the DOMElement
given the tag name and namespace (See Also: DOMElement Subprograms):
DBMS_XMLDOM.GETELEMENTSBYTAGNAME( elem IN DOMElement, name IN VARCHAR2, ns IN VARCHAR2) RETURN DOMNodeList;
Parameter | Description |
---|---|
|
|
|
Name of the tag to match on. |
|
The |
|
Tag name; using a wildcard(*) would match any tag. |
|
Namespace. |
This function retrieves a NamedNodeMap
containing the general entities, both external and internal, declared in the DTD.
DBMS_XMLDOM.GETENTITIES( dt IN DOMDocumentType) RETURN DOMNamedNodeMap;
Parameter | Description |
---|---|
|
|
GETEXPANDEDNAME is overloaded as a procedure and two functions. The specific forms of functionality are described alongside the syntax declarations.
Retrieves the expanded name of the Node
if is in an Element
or Attribute
type; otherwise, returns NULL
(See Also: DOMNode Subprograms)
DBMS_XMLDOM.GETEXPANDEDNAME( n IN DOMNode data OUT VARCHAR);
Returns the expanded name of the DOMAttr
(See Also: DOMAttr Subprograms):
DBMS_XMLDOM.GETEXPANDEDNAME( a IN DOMAttr) RETURN VARCHAR2;
Returns the expanded name of the DOMElement
(See Also: DOMElement Subprograms):
DBMS_XMLDOM.GETEXPANDEDNAME( elem IN DOMElement) RETURN VARCHAR2;
Parameter | Description |
---|---|
|
|
|
Returned expanded name of the |
|
|
|
|
This function retrieves the first child of this node. If there is no such node, this returns NULL
.
DBMS_XMLDOM.GETFIRSTCHILD( n IN DOMNode) RETURN DOMNode;
Parameter | Description |
---|---|
|
|
This function returns the DOMImplementation
object that handles this DOMDocument
.
DBMS_XMLDOM.GETIMPLEMENTATION( doc IN DOMDocument) RETURN DOMImplementation;
Parameter | Description |
---|---|
|
|
This function retrieves the last child of this node. If there is no such node, this returns NULL
.
DBMS_XMLDOM.GETLASTCHILD( n IN DOMNode) RETURN DOMNode;
Parameter | Description |
---|---|
|
|
This function is overloaded. The specific forms of functionality are described alongside the syntax declarations.
Gets the number of characters in the data. This may have the value zero, because CharacterData nodes may be empty (See Also: DOMCharacterData Subprograms):
DBMS_XMLDOM.GETLENGTH( cd IN DOMCharacterData) RETURN NUMBER;
Gets the number of nodes in this map. The range of valid child node indexes is 0
to length-1
, inclusive (See Also: DOMNamedNodeMap Subprograms):
DBMS_XMLDOM.GETLENGTH( nnm IN DOMNamedNodeMap) RETURN NUMBER;
Gets the number of nodes in the list. The range of valid child node indexes is 0
to length-1
, inclusive (See Also: DOMNodeList Subprograms):
DBMS_XMLDOM.GETLENGTH( nl IN DOMNodeList) RETURN NUMBER;
Parameter | Description |
---|---|
|
|
|
|
|
|
This function is overloaded as a procedure and two functions. The specific forms of functionality are described alongside the syntax declarations.
Retrieves the local part of the node's qualified name (See Also: DOMNode Subprograms):
DBMS_XMLDOM.GETLOCALNAME( n IN DOMNode, data OUT VARCHAR2);
Returns the local name of the DOMAttr
(See Also: DOMAttr Subprograms):
DBMS_XMLDOM.GETLOCALNAME( a IN DOMAttr) RETURN VARCHAR2;
Returns the local name of the DOMElement
(See Also: DOMElement Subprograms)
DBMS_XMLDOM.GETLOCALNAME( elem IN DOMElement) RETURN VARCHAR2;
Parameter | Description |
---|---|
|
|
|
Returned local name. |
|
|
|
|
This function is overloaded. The specific forms of functionality are described alongside the syntax declarations.
Returns the name of this attribute (See Also: DOMAttr Subprograms):
DBMS_XMLDOM.GETNAME( a IN DOMAttr) RETURN VARCHAR2;
Retrieves the name of DTD, or the name immediately following the DOCTYPE
keyword (See Also: DOMDocumentType Subprograms):
DBMS_XMLDOM.GETNAME( dt IN DOMDocumentType) RETURN VARCHAR2;
Parameter | Description |
---|---|
|
|
|
|
This function retrieves a node specified by name.
Retrieves a node specified by name:
DBMS_XMLDOM.GETNAMEDITEM( nnm DOMNamedNodeMap, name IN VARCHAR2) RETURN DOMNode;
Retrieves a node specified by name and namespace URI:
DBMS_XMLDOM.GETNAMEDITEM( nnm DOMNamedNodeMap, name IN VARCHAR2, ns IN VARCHAR2) RETURN DOMNode;
Parameter | Description |
---|---|
|
|
|
Name of the item to be retrieved. |
|
Namespace. |
GETNAMESPACE is overloaded as a procedure and two functions. The specific forms of functionality are described alongside the syntax declarations.
Retrieves the namespace URI associated with the node (See Also: DOMNode Subprograms):
DBMS_XMLDOM.GETNAMESPACE( n IN DOMNode, data OUT VARCHAR2);
Retrieves the namespace of the DOMAttr
(See Also: DOMAttr Subprograms):
DBMS_XMLDOM.GETNAMESPACE( a IN DOMAttr) RETURN VARCHAR2;
Retrieves the namespace of the DOMElement
(See Also: DOMElement Subprograms):
DBMS_XMLDOM.GETNAMESPACE( elem IN DOMElement) RETURN VARCHAR2;
Parameter | Description |
---|---|
|
|
|
Returned namespace URI. |
|
|
|
|
This function retrieves the node immediately following this node. If there is no such node, this returns NULL
.
DBMS_XMLDOM.GETNEXTSIBLING( n IN DOMNode) RETURN DOMNode;
Parameter | Description |
---|---|
|
|
This function gets the name of the node depending on its type.
DBMS_XMLDOM.GETNODENAME( n IN DOMNode) RETURN VARCHAR2;
Parameter | Description |
---|---|
|
|
This function retrieves a code representing the type of the underlying object.
DBMS_XMLDOM.GETNODETYPE( n IN DOMNode) RETURN NUMBER;
Parameter | Description |
---|---|
|
|
This function gets the value of this node, depending on its type.
DBMS_XMLDOM.GETNODEVALUE( n IN DOMNode) RETURN VARCHAR2;
Parameter | Description |
---|---|
|
|
This function returns the notation name of the DOMEntity
.
DBMS_XMLDOM.GETNOTATIONNAME( ent IN DOMEntity) RETURN VARCHAR2;
Parameter | Description |
---|---|
|
|
This function retrieves a NamedNodeMap
containing the notations declared in the DTD.
DBMS_XMLDOM.GETNOTATIONS( dt IN DOMDocumentType) RETURN DOMNamedNodeMap;
Parameter | Description |
---|---|
|
|
This function returns the target of the DOMProcessingInstruction
.
DBMS_XMLDOM.GETTARGET( pi IN DOMProcessingInstruction) RETURN VARCHAR2;
Parameter | Description |
---|---|
|
|
This function retrieves the Document object associated with this node. This is also the Document object used to create new nodes. When this node is a Document or a Document Type that is not used with any Document yet, this is NULL
.
DBMS_XMLDOM.GETOWNERDOCUMENT( n IN DOMNode) RETURN DOMDocument;
Parameter | Description |
---|---|
|
|
This function retrieves the Element node to which the specified Attribute is attached.
DBMS_XMLDOM.GETOWNERELEMENT( a IN DOMAttr) RETURN DOMElement;
Parameter | Description |
---|---|
|
Attribute. |
This function retrieves the parent of this node. All nodes, except Attr
, Document
, DocumentFragment
, Entity
, and Notation
may have a parent. However, if a node has just been created and not yet added to the tree, or if it has been removed from the tree, this is NULL
.
DBMS_XMLDOM.GETPARENTNODE( n IN DOMNode) RETURN DOMNode;
Parameter | Description |
---|---|
|
|
This function retrieves the namespace prefix of the node.
DBMS_XMLDOM.GETPREFIX( n IN DOMNode) RETURN VARCHAR2;
Parameter | Description |
---|---|
|
|
This function retrieves the node immediately preceding this node. If there is no such node, this returns NULL
.
DBMS_XMLDOM.GETPREVIOUSSIBLING( n IN DOMNode) RETURN DOMNode;
Parameter | Description |
---|---|
|
|
This function is overloaded. The specific forms of functionality are described alongside the syntax declarations.
Returns the public identifier of the given DTD (See Also: DOMDocumentType Subprograms):
DBMS_XMLDOM.GETPUBLICID( dt IN DOMDocumentType) RETURN VARCHAR2;
Returns the public identifier of the DOMEntity
(See Also: DOMEntity Subprograms):
DBMS_XMLDOM.GETPUBLICID( ent IN DOMEntity) RETURN VARCHAR2;
Returns the public identifier of the DOMNotation
(See Also: DOMNotation Subprograms):
DBMS_XMLDOM.GETPUBLICID( n IN DOMNotation) RETURN VARCHAR2;
Parameter | Description |
---|---|
|
The DTD. |
|
|
|
|
This function is overloaded. The specific forms of functionality are described alongside the syntax declarations.
Returns the qualified name of the DOMAttr
(See Also: DOMAttr Subprograms):
DBMS_XMLDOM.GETQUALIFIEDNAME( a IN DOMAttr) RETURN VARCHAR2;
Returns the qualified name of the DOMElement
(See Also: DOMElement Subprograms):
DBMS_XMLDOM.GETQUALIFIEDNAME( elem IN DOMElement) RETURN VARCHAR2;
Parameter | Description |
---|---|
|
|
|
|
This function retrieves the schema URI associated with the node.
DBMS_XMLDOM.GETSCHEMANODE( n IN DOMNode) RETURN DOMNode;
Parameter | Description |
---|---|
|
|
If this attribute was explicitly given a value in the original document, this is true; otherwise, it is false.
DBMS_XMLDOM.GETSPECIFIED( a IN DOMAttr) RETURN BOOLEAN;
Parameter | Description |
---|---|
|
|
This function returns the standalone property associated with the DOMDocument
.
DBMS_XMLDOM.GETSTANDALONE( doc IN DOMDocument) RETURN VARCHAR2;
Parameter | Description |
---|---|
|
|
This function is overloaded. The specific forms of functionality are described alongside the syntax declarations.
Returns the system id of the given DTD (See Also: DOMDocumentType Subprograms):
DBMS_XMLDOM.GETSYSTEMID( dt IN DOMDocumentType) RETURN VARCHAR2;
Returns the system identifier of the DOMEntity
(See Also: DOMEntity Subprograms):
DBMS_XMLDOM.GETSYSTEMID( ent IN DOMEntity) RETURN VARCHAR2;
Returns the system identifier of the DOMNotation
(See Also: DOMNotation Subprograms):
DBMS_XMLDOM.GETSYSTEMID( n IN DOMNotation) RETURN VARCHAR2;
Parameter | Description |
---|---|
|
The DTD. |
|
|
|
|
This function returns the name of the DOMElement
.
DBMS_XMLDOM.GETTAGNAME( elem IN DOMElement) RETURN VARCHAR2;
Parameter | Description |
---|---|
|
The |
This function retrieves the value of the attribute.
DBMS_XMLDOM.GETVALUE( a IN DOMAttr) RETURN VARCHAR2;
Parameter | Description |
---|---|
|
|
This function returns the version of the DOMDocument
.
DBMS_XMLDOM.GETVERSION( doc IN DOMDocument) RETURN VARCHAR2;
Parameter | Description |
---|---|
|
|
This function returns the XMLType
associated with the DOMDocument
.
DBMS_XMLDOM.GETXMLTYPE( doc IN DOMDocument) RETURN SYS.XMLType;
Parameter | Description |
---|---|
|
|
Verifies whether an attribute has been defined for DOMElement
, or has a default value.
Verifies whether an attribute with the specified name has been defined for DOMElement
:
DBMS_XMLDOM.HASATTRIBUTE( elem IN DOMElement, name IN VARCHAR2) RETURN VARCHAR2;
Verifies whether an attribute with specified name and namespace URI has been defined for DOMElement
; namespace enabled:
DBMS_XMLDOM.HASATTRIBUTE( elem IN DOMElement, name IN VARCHAR2, ns IN VARCHAR2) RETURN VARCHAR2;
Parameter | Description |
---|---|
|
The DOMElement. |
|
Attribute name; * matches any attribute. |
|
Namespace. |
This function returns whether this node has any attributes.
DBMS_XMLDOM.HASATTRIBUTES( n IN DOMNode) RETURN BOOLEAN;
Parameter | Description |
---|---|
|
|
This function determines whether this node has any children.
DBMS_XMLDOM.HASCHILDNODES( n IN DOMNode) RETURN BOOLEAN;
Parameter | Description |
---|---|
|
|
This function tests if the DOMImplementation
implements a specific feature.
DBMS_XMLDOM.HASFEATURE( di IN OMImplementation, feature IN VARCHAR2, version IN VARCHAR2) RETURN BOOLEAN;
Parameter | Description |
---|---|
|
|
|
The feature to check for. |
|
The version of the DOM to check in. |
This function imports a node from an external document and returns this new node.
DBMS_XMLDOM.IMPORTNODE( doc IN DOMDocument, importedNode IN DOMNode, deep IN BOOLEAN) RETURN DOMNode;
Parameter | Description |
---|---|
|
Document from which the node is imported. |
|
Node to import. |
|
Setting for recursive import. |
This function inserts the node NEWCHILD
before the existing child node REFCHILD
. If REFCHILD
is NULL
, insert NEWCHILD
at the end of the list of children.
If NEWCHILD
is a DocumentFragment
object, all of its children are inserted, in the same order, before REFCHILD
. If the NEWCHILD
is already in the tree, it is first removed.
DBMS_XMLDOM.INSERTBEFORE( n IN DOMNode, newChild IN DOMNode, refChild IN DOMNode) RETURN DOMNode;
Parameter | Description |
---|---|
|
|
|
The child to be inserted in the |
|
The reference node before which the |
This procedure inserts a string at the specified character offset.
DBMS_XMLDOM.INSERTDATA( cd IN DOMCharacterData, offset IN NUMBER, arg IN VARCHAR2);
Parameter | Description |
---|---|
|
|
|
The offset at which to insert the data. |
|
The value to be inserted. |
This function is overloaded. The specific forms of functionality are described alongside the syntax declarations.
Checks if the given DOMNode
is NULL
. Returns TRUE
if it is NULL
, FALSE
otherwise (See Also: DOMNode Subprograms):
DBMS_XMLDOM.ISNULL( n IN DOMNode) RETURN BOOLEAN;
Checks that the given DOMAttr
is NULL
; returns TRUE
if it is NULL
, FALSE
otherwise (See Also: DOMAttr Subprograms):
DBMS_XMLDOM.ISNULL( a IN DOMAttr) RETURN BOOLEAN;
Checks that the given DOMCDataSection
is NULL
; returns TRUE
if it is NULL
, FALSE
otherwise (See Also: DOMCDataSection Subprograms):
DBMS_XMLDOM.ISNULL( cds IN DOMCDataSection) RETURN BOOLEAN;
Checks that the given DOMCharacterData
is NULL
; returns TRUE
if it is NULL
, FALSE
otherwise (See Also: DOMCharacterData Subprograms):
DBMS_XMLDOM.ISNULL( cd IN DOMCharacterData) RETURN BOOLEAN;
Checks that the given DOMComment
is NULL
; returns TRUE
if it is NULL
, FALSE
otherwise (See Also: DOMComment Subprograms):
DBMS_XMLDOM.ISNULL( com IN DOMComment) RETURN BOOLEAN;
Checks that the given DOMDocument
is NULL
; returns TRUE
if it is NULL
, FALSE
otherwise (See Also: DOMDocument Subprograms):
DBMS_XMLDOM.ISNULL( doc IN DOMDocument) RETURN BOOLEAN;
Checks that the given DOMDocumentFragment
is NULL
; returns TRUE
if it is NULL
, FALSE
otherwise (See Also: DOMDocumentFragment Subprograms):
DBMS_XMLDOM.ISNULL( df IN DOMDocumentFragment) RETURN BOOLEAN;
Checks that the given DOMDocumentType
is NULL
; returns TRUE
if it is NULL
, FALSE
otherwise (See Also: DOMDocumentType Subprograms):
DBMS_XMLDOM.ISNULL( dt IN DOMDocumentType) RETURN BOOLEAN;
Checks that the given DOMElement
is NULL
; returns TRUE
if it is NULL
, FALSE
otherwise (See Also: DOMElement Subprograms):
DBMS_XMLDOM.ISNULL( elem IN DOMElement) RETURN BOOLEAN;
Checks that the given DOMEntity
is NULL
; returns TRUE
if it is NULL
, FALSE
otherwise (See Also: DOMEntity Subprograms):
DBMS_XMLDOM.ISNULL( ent IN DOMEntity) RETURN BOOLEAN;
Checks that the given DOMEntityReference
is NULL
; returns TRUE
if it is NULL
, FALSE
otherwise (See Also: DOMEntityReference Subprograms):
DBMS_XMLDOM.ISNULL( eref IN DOMEntityReference) RETURN BOOLEAN;
Checks that the DOMImplementation
is NULL
; returns TRUE
if it is NULL
(See Also: DOMImplementation Subprograms):
DBMS_XMLDOM.ISNULL( di IN DOMImplementation) RETURN BOOLEAN;
Checks that the given DOMNamedNodeMap
is NULL
; returns TRUE
if it is NULL
, FALSE
otherwise (See Also: DOMNamedNodeMap Subprograms):
DBMS_XMLDOM.ISNULL( nnm IN DOMNamedNodeMap) RETURN BOOLEAN;
Checks that the given DOMNodeList
is NULL
; returns TRUE
if it is NULL
, FALSE
otherwise (See Also: DOMNodeList Subprograms):
DBMS_XMLDOM.ISNULL( nl IN DOMNodeList) RETURN BOOLEAN;
Checks that the given DOMNotation
is NULL
; returns TRUE
if it is NULL
, FALSE
otherwise (See Also: DOMNotation Subprograms):
DBMS_XMLDOM.ISNULL( n IN DOMNotation) RETURN BOOLEAN;
Checks that the given DOMProcessingInstruction
is NULL
; returns TRUE
if it is (See Also: DOMProcessingInstruction Subprograms):
DBMS_XMLDOM.ISNULL( pi IN DOMProcessingInstruction) RETURN BOOLEAN;
Checks that the given DOMText
is NULL
; returns TRUE
if it is NULL
, FALSE
otherwise (See Also: DOMText Subprograms):
DBMS_XMLDOM.ISNULL( t IN DOMText) RETURN BOOLEAN;
This function is overloaded. The specific forms of functionality are described alongside the syntax declarations.
Returns the item in the map which corresponds to the INDEX
parameter. If INDEX
is greater than or equal to the number of nodes in this map, this returns NULL
(See Also: DOMNamedNodeMap Subprograms):
DBMS_XMLDOM.ITEM( nnm IN DOMNamedNodeMap, index IN NUMBER) RETURN DOMNode;
Returns the item in the collection which corresponds to the INDEX
parameter. If index is greater than or equal to the number of nodes in the list, this returns NULL
(See Also: DOMNodeList Subprograms):
DBMS_XMLDOM.ITEM( nl IN DOMNodeList, index IN NUMBER) RETURN DOMNode;
Parameter | Description |
---|---|
|
|
|
The index in the node map at which the item is to be retrieved. |
|
|
|
The index in the |
This function casts a given DOMNode
to a DOMAttr
, and returns the DOMAttr
.
DBMS_XMLDOM.MAKEATTR( n IN DOMNode) RETURN DOMAttr;
Parameter | Description |
---|---|
|
|
This function casts a given DOMNode
to a DOMCDataSection
.
DBMS_XMLDOM.MAKECDATASECTION( n IN DOMNode) RETURN DOMCDataSection;
Parameter | Description |
---|---|
|
|
This function casts a given DOMNode
to a DOMCharacterData
, and returns the DOMCharacterData
.
DBMS_XMLDOM.MAKECHARACTERDATA( n IN DOMNode) RETURN DOMCharacterData;
Parameter | Description |
---|---|
|
|
This function casts a given DOMNode
to a DOMComment
, and returns the DOMComment
.
DBMS_XMLDOM.MAKECOMMENT( n IN DOMNode) RETURN DOMComment;
Parameter | Description |
---|---|
|
|
This function casts a given DOMNode
to a DOMDocument
, and returns the DOMDocument
.
DBMS_XMLDOM.MAKEDOCUMENT( n IN DOMNode) RETURN DOMDocument;
Parameter | Description |
---|---|
|
|
This function casts a given DOMNode
to a DOMDocumentFragment
, and returns the DOMDocumentFragment
.
DBMS_XMLDOM.MAKEDOCUMENTFRAGMENT( n IN DOMNode) RETURN DOMDocumentFragment;
Parameter | Description |
---|---|
|
|
This function casts a given DOMNode
to a DOMDocumentType
and returns the DOMDocumentType
.
DBMS_XMLDOM.MAKEDOCUMENTTYPE( n IN DOMNode) RETURN DOMDocumentType;
Parameter | Description |
---|---|
|
|
This function casts a given DOMNode
to a DOMElement
, and returns the DOMElement
.
DBMS_XMLDOM.MAKEELEMENT( n IN DOMNode) RETURN DOMElement;
Parameter | Description |
---|---|
|
|
This function casts a given DOMNode
to a DOMEntity
, and returns the DOMEntity
.
DBMS_XMLDOM.MAKEENTITY( n IN DOMNode) RETURN DOMEntity;
Parameter | Description |
---|---|
|
|
This function casts a given DOMNode
to a DOMEntityReference
, and returns the DOMEntityReference
.
DBMS_XMLDOM.MAKEENTITYREFERENCE( n IN DOMNode) RETURN DOMEntityReference;
Parameter | Description |
---|---|
|
|
This function is overloaded. The specific forms of functionality are described alongside the syntax declarations.
Casts given DOMAttr
to a DOMNode
, and returns the DOMNode
(See Also: DOMAttr Subprograms):
DBMS_XMLDOM.MAKENODE( a IN DOMAttr) RETURN DOMNode;
Casts the DOMCDataSection
to a DOMNode
, and returns that DOMNode
(See Also: DOMCDataSection Subprograms):
DBMS_XMLDOM.MAKENODE( cds IN DOMCDataSection) RETURN DOMNode;
Casts the given DOMCharacterData
as a DOMNode
, and returns that DOMNode
(See Also: DOMCharacterData Subprograms):
DBMS_XMLDOM.MAKENODE( cd IN DOMCharacterData) RETURN DOMNode;
Casts the given DOMComment
to a DOMNode
, and returns that DOMNode
(See Also: DOMComment Subprograms):
DBMS_XMLDOM.MAKENODE( com IN DOMComment) RETURN DOMNode;
Casts the DOMDocument
to a DOMNode
, and returns that DOMNode
(See Also: DOMDocument Subprograms):
DBMS_XMLDOM.MAKENODE( doc IN DOMDocument) RETURN DOMNode;
Casts the given DOMDocumentFragment
to a DOMNode
, and returns that DOMNode
(See Also: DOMDocumentFragment Subprograms):
DBMS_XMLDOM.MAKENODE( df IN DOMDocumentFragment) RETURN DOMNode;
Casts the given DOMDocumentType
to a DOMNode
, and returns that DOMNode
(See Also: DOMDocumentType Subprograms):
DBMS_XMLDOM.MAKENODE( dt IN DOMDocumentType) RETURN DOMNode;
Casts the given DOMElement
to a DOMNode
, and returns that DOMNode
(See Also: DOMElement Subprograms):
DBMS_XMLDOM.MAKENODE( elem IN DOMElement) RETURN DOMNode;
Casts given DOMEntity
to a DOMNode
, and returns that DOMNode
(See Also: DOMEntity Subprograms):
DBMS_XMLDOM.MAKENODE( ent IN DOMEntity) RETURN DOMNode;
Casts the DOMEntityReference
to a DOMNode
, and returns that DOMNode
(See Also: DOMEntityReference Subprograms):
DBMS_XMLDOM.MAKENODE( eref IN DOMEntityReference) RETURN DOMNode;
Casts the DOMNotation
to a DOMNode
, and returns that DOMNode
(See Also: DOMNotation Subprograms):
DBMS_XMLDOM.MAKENODE( n IN DOMNotation) RETURN DOMNode;
Casts the DOMProcessingInstruction
to a DOMNode
, and returns the DOMNode
(See Also: DOMProcessingInstruction Subprograms):
DBMS_XMLDOM.MAKENODE( pi IN DOMProcessingInstruction) RETURN DOMNode;
Casts the DOMText
to a DOMNode
, and returns that DOMNode
(See Also: DOMText Subprograms):
DBMS_XMLDOM.MAKENODE( t IN DOMText) RETURN DOMNode;
This function casts a given DOMNode
to a DOMNotation
, and returns the DOMNotation
.
DBMS_XMLDOM.MAKENOTATION( n IN DOMNode) RETURN DOMNotation;
Parameter | Description |
---|---|
|
|
This function casts a given DOMNode
to a DOMProcessingInstruction
, and returns the DOMProcessingInstruction
.
DBMS_XMLDOM.MAKEPROCESSINGINSTRUCTION( n IN DOMNode) RETURN DOMProcessingInstruction;
Parameter | Description |
---|---|
|
|
This function casts a given DOMNode
to a DOMText
, and returns the DOMText
.
DBMS_XMLDOM.MAKETEXT( n IN DOMNode) RETURN DOMText;
Parameter | Description |
---|---|
|
|
Returns a new DOMDocument
instance.
Returns a new DOMDocument
instance:
DBMS_XMLDOM.NEWDOMDOCUMENT RETURN DOMDocument;
Returns a new DOMDocument
instance created from the specified XMLType
object:
DBMS_XMLDOM.NEWDOMDOCUMENT( xmldoc IN sys.XMLType) RETURN DOMDocument;
Returns a new DOMDocument
instance created from the specified CLOB
:
DBMS_XMLDOM.NEWDOMDOCUMENT( cl IN CLOB) RETURN DOMDocument;
Parameter | Description |
---|---|
|
|
|
|
This procedure normalizes the text children of the DOMElement
.
DBMS_XMLDOM.NORMALIZE( elem IN DOMElement);
Parameter | Description |
---|---|
|
The |
Removes an attribute from the DOMElement
by name.
Removes the value of a DOMElement
's attribute by name:
DBMS_XMLDOM.REMOVEATTRIBUTE( elem IN DOMElement, name IN VARCHAR2);
Removes the value of a DOMElement
's attribute by name and namespace URI.
DBMS_XMLDOM.REMOVEATTRIBUTE( elem IN DOMElement, name IN VARCHAR2, ns IN VARCHAR2);
Parameter | Description |
---|---|
|
The |
|
Attribute name. |
|
Namespace. |
This function removes the specified attribute node from the DOMElement
. The method returns the removed node.
DBMS_XMLDOM.REMOVEATTRIBUTENODE( elem IN DOMElement, oldAttr IN DOMAttr) RETURN DOMAttr;
Parameter | Description |
---|---|
|
The |
|
The old |
This function removes the child node indicated by OLDChild
from the list of children, and returns it.
DBMS_XMLDOM.REMOVECHILD( n IN DOMNode, oldChild IN DOMNode) RETURN DOMNode;
Parameter | Description |
---|---|
|
|
|
The child of the node n to be removed. |
This function removes from the map a node specified by name; returns this node. When this map contains the attributes attached to an element, if the removed attribute is known to have a default value, an attribute immediately appears containing the default value as well as the corresponding namespace URI, local name, and prefix when applicable.
Removes a node specified by name:
DBMS_XMLDOM.REMOVENAMEDITEM( nnm IN DOMNamedNodeMap, name IN VARCHAR2) RETURN DOMNode;
Removes a node specified by name and namespace URI:
DBMS_XMLDOM.REMOVENAMEDITEM( nnm IN DOMNamedNodeMap, name IN VARCHAR2, ns IN VARCHAR2) RETURN DOMNode;
Parameter | Description |
---|---|
|
|
|
The name of the item to be removed from the map |
|
Namespace |
This function replaces the child node OLDChild
with newChild
in the list of children, and returns the OLDChild
node. If newChild
is a DocumentFragment object, OLDChild
is replaced by all of the DocumentFragment children, which are inserted in the same order. If the newChild
is already in the tree, it is first removed.
DBMS_XMLDOM.REPLACECHILD( n IN DOMNode, newChild IN DOMNode, oldChild IN DOMNode) RETURN DOMNode;
Parameter | Description |
---|---|
|
|
|
The new child which is to replace the old child. |
|
The child of the node n which is to be replaced. |
This procedure changes a range of characters in the node. Upon success, data and length reflect the change.
DBMS_XMLDOM.REPLACEDATA( cd IN DOMCharacterData, offset IN NUMBER, cnt IN NUMBER, arg IN VARCHAR2);
Parameter | Description |
---|---|
|
|
|
The offset at which to replace. |
|
The number of characters to replace. |
|
The value to replace with. |
This function resolves the given namespace prefix, and returns the resolved namespace.
DBMS_XMLDOM.RESOLVENAMESPACEPREFIX( elem IN DOMElement, prefix IN VARCHAR2) RETURN VARCHAR2;
Parameter | Description |
---|---|
|
The |
|
Namespace prefix. |
Sets the value of a DOMElement
's attribute by name.
Sets the value of a DOMElement
's attribute by name:
DBMS_XMLDOM.SETATTRIBUTE( elem DOMElement, name IN VARCHAR2, value IN VARCHAR2);
Sets the value of a DOMElement
's attribute by name and namespace URI:
DBMS_XMLDOM.SETATTRIBUTE( elem DOMElement, name IN VARCHAR2, value IN VARCHAR2, ns IN VARCHAR2);
Parameter | Description |
---|---|
|
The |
|
Attribute name. |
|
Attribute value. |
|
Namespace. |
Adds a new attribute node to the DOMElement
.
Adds a new attribute node to the DOMElement
:
DBMS_XMLDOM.SETATTRIBUTENODE( elem DOMElement, newAttr IN DOMAttr) RETURN DOMAttr;
Adds a new attribute node to the DOMElement
; namespace enabled:
DBMS_XMLDOM.SETATTRIBUTENODE( elem DOMElement, newAttr IN DOMAttr, ns IN VARCHAR2) RETURN DOMAttr;
Parameter | Description |
---|---|
|
The |
|
The new |
|
The namespace. |
This procedure is overloaded. The specific forms of functionality are described alongside the syntax declarations.
Sets the character data of the node that implements this interface (See Also: DOMCharacterData Subprograms):
DBMS_XMLDOM.SETDATA( cd IN DOMCharacterData, data IN VARCHAR2);
Sets the content data of the DOMProcessingInstruction
(See Also: DOMProcessingInstruction Subprograms):
DBMS_XMLDOM.SETDATA( pi IN DOMProcessingInstruction, data IN VARCHAR2);
Parameter | Description |
---|---|
|
|
|
The data to which the node is set. |
|
|
|
New processing instruction content data. |
This function adds a node using its NodeName
attribute. If a node with that name is already present in this map, it is replaced by the new one. The old node is returned on replacement; if no replacement is made, NULL
is returned.
As the NodeName
attribute is used to derive the name under which the node must be stored, multiple nodes of certain types, those that have a "special" string value, cannot be stored because the names would clash. This is seen as preferable to allowing nodes to be aliased.
Adds a node using its NodeName
attribute:
DBMS_XMLDOM.SETNAMEDITEM( nnm IN DOMNamedNodeMap, arg IN DOMNode) RETURN DOMNode;
Adds a node using its NodeName
attribute and namespace URI:
DBMS_XMLDOM.SETNAMEDITEM( nnm IN DOMNamedNodeMap, arg IN DOMNode, ns IN VARCHAR2) RETURN DOMNode;
Parameter | Description |
---|---|
|
|
|
The Node to be added using its |
|
Namespace. |
This procedure sets the value of this node, depending on its type. When it is defined to be NULL
, setting it has no effect.
DBMS_XMLDOM.SETNODEVALUE( n IN DOMNode, nodeValue IN VARCHAR2);
Parameter | Description |
---|---|
|
|
|
The value to which node is set. |
This procedure sets the namespace prefix for this node to the given value.
DBMS_XMLDOM.SETPREFIX( n IN DOMNode, prefix IN VARCHAR2);
Parameter | Description |
---|---|
|
|
|
The value for the namespace prefix of the node. |
This procedure sets the standalone property of the DOMDocument
.
DBMS_XMLDOM.SETSTANDALONE( doc IN DOMDocument, newvalue IN VARCHAR2);
Parameter | Description |
---|---|
|
|
|
Value of the standalone property of the document. |
This procedure sets the value of the attribute.
DBMS_XMLDOM.SETVALUE( a IN DOMAttr, value IN VARCHAR2);
Parameter | Description |
---|---|
|
|
|
The value to set the attribute to. |
This procedure sets the version of the DOMDocument
.
DBMS_XMLDOM.SETVERSION( doc IN DOMDocument, version IN VARCHAR2);
Parameter | Description |
---|---|
|
|
|
The version of the document. |
This function breaks this DOMText
node into two DOMText
nodes at the specified offset.
DBMS_XMLDOM.SPLITTEXT( t IN DOMText, offset IN NUMBER) RETURN DOMText;
Parameter | Description |
---|---|
|
|
|
Offset at which to split. |
This function extracts a range of data from the node.
DBMS_XMLDOM.SUBSTRINGDATA( cd IN DOMCharacterData, offset IN NUMBER, cnt IN NUMBER) RETURN VARCHAR2;
Parameter | Description |
---|---|
|
|
|
The starting offset of the data from which to get the data. |
|
The number of characters (from the offset) of the data to get. |
This procedure is overloaded. The specific forms of functionality are described alongside the syntax declarations.
Writes XML node to specified buffer using the database character set (See Also: DOMNode Subprograms):
DBMS_XMLDOM.WRITETOBUFFER( n IN DOMNode, buffer IN OUT VARCHAR2);
Writes XML document to a specified buffer using database character set (See Also: DOMDocument Subprograms):
DBMS_XMLDOM.WRITETOBUFFER( doc IN DOMdocument, buffer IN OUT VARCHAR2);
Writes the contents of the specified document fragment into a buffer using the database character set (See Also: DOMDocumentFragment Subprograms):
DBMS_XMLDOM.WRITETOBUFFER( df IN DOMDocumentFragment, buffer IN OUT VARCHAR2);
Parameter | Description |
---|---|
|
|
|
Buffer to write to. |
|
|
|
DOM document fragment. |
This procedure is overloaded. The specific forms of functionality are described alongside the syntax declarations.
Writes XML node to specified CLOB
using the database character set (See Also: DOMNode Subprograms):
DBMS_XMLDOM.WRITETOCLOB( n IN DOMNode, cl IN OUT CLOB);
Writes XML document to a specified CLOB
using database character set (See Also: DOMDocument Subprograms):
DBMS_XMLDOM.WRITETOCLOB( doc IN DOMdocument, cl IN OUT CLOB);
Parameter | Description |
---|---|
|
|
|
|
|
|
This procedure is overloaded. The specific forms of functionality are described alongside the syntax declarations.
Writes XML node to specified file using the database character set (See Also: DOMNode Subprograms):
DBMS_XMLDOM.WRITETOFILE( n IN DOMNode, fileName IN VARCHAR2);
Writes XML node to specified file using the given character set, which is passed in as a separate parameter (See Also: DOMNode Subprograms):
DBMS_XMLDOM.WRITETOFILE( n DOMNode, fileName IN VARCHAR2, charset IN VARCHAR2);
Writes an XML document to a specified file using database character set (See Also : DOMDocument Subprograms):
DBMS_XMLDOM.WRITETOFILE( doc IN DOMDocument,
fileName IN VARCHAR2);
Writes an XML document to a specified file using given character set (See Also : DOMDocument Subprograms):
DBMS_XMLDOM.WRITETOFILE( doc IN DOMDocument, fileName IN VARCHAR2, charset IN VARCHAR2);
Parameter | Description |
---|---|
|
|
|
File to write to. |
|
Given character set. |
|
|
|
Character set. |