oracle.xml.parser.v2
Class XMLDocumentFragment
oracle.xml.parser.v2.XMLElement
|
+--oracle.xml.parser.v2.XMLDocumentFragment
- public class XMLDocumentFragment
- extends XMLElement
- implements DocumentFragment, java.io.Serializable
This class implements the DOM DocumentFragment interface. Extends XMLElement rather than XMLNode so it can be handled as an element. This is convenient in processing
- See Also:
DocumentFragment
, NodeFactory
, DOMParser.setNodeFactory(oracle.xml.parser.v2.NodeFactory)
, Serialized Form
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary |
XMLDocumentFragment()
Deprecated. use createDocumentFragment() method in XMLDocuemnt |
Method Summary |
NamedNodeMap |
getAttributes()
A NamedNodeMap containing the attributes of this node (if it is an Element ) or null otherwise. |
java.lang.String |
getLocalName()
Gets the local Name for this element. |
java.lang.String |
getNamespaceURI()
The namespace URI of this node, or null if it is unspecified. |
short |
getNodeType()
Gets a code representing the type of the underlying object |
Node |
getParentNode()
Gets the parent of this node |
Methods inherited from class oracle.xml.parser.v2.XMLElement |
cloneNode, getAttribute, getAttributeNode, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildrenByTagName, getChildrenByTagName, getElementsByTagName, getElementsByTagName, getElementsByTagNameNS, getExpandedName, getFirstAttribute, getNamespace, getPrefix, getQualifiedName, getTagName, hasAttribute, hasAttributeNS, hasAttributes, normalize, readExternal, readExternal, removeAttribute, removeAttributeNode, removeAttributeNS, reportSAXEvents, resolveNamespacePrefix, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, validateContent, validateContent, validateContent, writeExternal, writeExternal |
XMLDocumentFragment
public XMLDocumentFragment()
- Deprecated. use createDocumentFragment() method in XMLDocuemnt
- Creates an empty document fragment
getNamespaceURI
public java.lang.String getNamespaceURI()
- Description copied from interface: Node
- The namespace URI of this node, or
null
if it is unspecified.
This is not a computed value that is the result of a namespace lookup based on an examination of the namespace declarations in scope. It is merely the namespace URI given at creation time.
For nodes of any type other than ELEMENT_NODE
and ATTRIBUTE_NODE
and nodes created with a DOM Level 1 method, such as createElement
from the Document
interface, this is always null
.Per the Namespaces in XML Specification an attribute does not inherit its namespace from the element it is attached to. If an attribute is not explicitly given a namespace, it simply has no namespace.
-
- Overrides:
- getNamespaceURI in class XMLElement
-
- Returns:
- the namespace URI of this element
- Since:
- DOM 2 Gets the name space URI of this element
getLocalName
public java.lang.String getLocalName()
- Gets the local Name for this element.
-
- Overrides:
- getLocalName in class XMLElement
-
- Returns:
- the local Name
getParentNode
public Node getParentNode()
- Gets the parent of this node
-
- Returns:
- The parent of this node (always null)
getNodeType
public short getNodeType()
- Gets a code representing the type of the underlying object
-
- Overrides:
- getNodeType in class XMLElement
-
- Returns:
- type of the node
getAttributes
public NamedNodeMap getAttributes()
- Description copied from interface: Node
- A
NamedNodeMap
containing the attributes of this node (if it is an Element
) or null
otherwise.
-
- Overrides:
- getAttributes in class XMLElement
- Tags copied from class: XMLElement
-
- Returns:
- The list of attributes of this element
Copyright © 1997, 2004, Oracle. All rights reserved.