IDocument Interface

Definition

The Document interface represents the entire HTML or XML document.

[Android.Runtime.Register("org/w3c/dom/Document", "", "Org.W3c.Dom.IDocumentInvoker", ApiSince=1)]
public interface IDocument : IDisposable, Org.W3c.Dom.INode
type IDocument = interface
    interface INode
    interface IJavaObject
    interface IDisposable
Attributes
Implements

Remarks

Android platform documentation

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Properties

Attributes

A NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise.

(Inherited from INode)
BaseURI

The absolute base URI of this node or null if the implementation wasn't able to obtain an absolute URI.

(Inherited from INode)
ChildNodes

A NodeList that contains all children of this node.

(Inherited from INode)
Doctype

The Document Type Declaration (see DocumentType) associated with this document.

DocumentElement

This is a convenience attribute that allows direct access to the child node that is the document element of the document.

DocumentURI

The location of the document or null if undefined or if the Document was created using DOMImplementation.createDocument.

DomConfig

The configuration used when Document.normalizeDocument() is invoked.

FirstChild

The first child of this node.

(Inherited from INode)
Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
HasAttributes

Returns whether this node (if it is an element) has any attributes.

(Inherited from INode)
HasChildNodes

Returns whether this node has any children.

(Inherited from INode)
Implementation

The DOMImplementation object that handles this document.

InputEncoding

An attribute specifying the encoding used for this document at the time of the parsing.

LastChild

The last child of this node.

(Inherited from INode)
LocalName

Returns the local part of the qualified name of this node.

(Inherited from INode)
NamespaceURI

The namespace URI of this node, or null if it is unspecified (see ).

(Inherited from INode)
NextSibling

The node immediately following this node.

(Inherited from INode)
NodeName

The name of this node, depending on its type; see the table above.

(Inherited from INode)
NodeType

A code representing the type of the underlying object, as defined above.

(Inherited from INode)
NodeValue

The value of this node, depending on its type; see the table above.

(Inherited from INode)
OwnerDocument

The Document object associated with this node.

(Inherited from INode)
ParentNode

The parent of this node.

(Inherited from INode)
Prefix

The namespace prefix of this node, or null if it is unspecified.

(Inherited from INode)
PreviousSibling

The node immediately preceding this node.

(Inherited from INode)
StrictErrorChecking

An attribute specifying whether error checking is enforced or not.

TextContent

This attribute returns the text content of this node and its descendants.

(Inherited from INode)
XmlEncoding

An attribute specifying, as part of the , the encoding of this document.

XmlStandalone

An attribute specifying, as part of the , whether this document is standalone.

XmlVersion

An attribute specifying, as part of the , the version number of this document.

Methods

AdoptNode(INode)

Attempts to adopt a node from another document to this document.

AppendChild(INode)

Adds the node newChild to the end of the list of children of this node.

(Inherited from INode)
CloneNode(Boolean)

Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes.

(Inherited from INode)
CompareDocumentPosition(INode)

Compares the reference node, i.e.

(Inherited from INode)
CreateAttribute(String)

Creates an Attr of the given name.

CreateAttributeNS(String, String)

Creates an attribute of the given qualified name and namespace URI.

CreateCDATASection(String)

Creates a CDATASection node whose value is the specified string.

CreateComment(String)

Creates a Comment node given the specified string.

CreateDocumentFragment()

Creates an empty DocumentFragment object.

CreateElement(String)

Creates an element of the type specified.

CreateElementNS(String, String)

Creates an element of the given qualified name and namespace URI.

CreateEntityReference(String)

Creates an EntityReference object.

CreateProcessingInstruction(String, String)

Creates a ProcessingInstruction node given the specified name and data strings.

CreateTextNode(String)

Creates a Text node given the specified string.

GetElementById(String)

Returns the Element that has an ID attribute with the given value.

GetElementsByTagName(String)

Returns a NodeList of all the Elements in document order with a given tag name and are contained in the document.

GetElementsByTagNameNS(String, String)

Returns a NodeList of all the Elements with a given local name and namespace URI in document order.

GetFeature(String, String)

This method returns a specialized object which implements the specialized APIs of the specified feature and version, as specified in .

(Inherited from INode)
GetUserData(String)

Retrieves the object associated to a key on a this node.

(Inherited from INode)
ImportNode(INode, Boolean)

Imports a node from another document to this document, without altering or removing the source node from the original document; this method creates a new copy of the source node.

InsertBefore(INode, INode)

Inserts the node newChild before the existing child node refChild.

(Inherited from INode)
IsDefaultNamespace(String)

This method checks if the specified namespaceURI is the default namespace or not.

(Inherited from INode)
IsEqualNode(INode)

Tests whether two nodes are equal.

(Inherited from INode)
IsSameNode(INode)

Returns whether this node is the same node as the given one.

(Inherited from INode)
IsSupported(String, String)

Tests whether the DOM implementation implements a specific feature and that feature is supported by this node, as specified in .

(Inherited from INode)
LookupNamespaceURI(String)

Look up the namespace URI associated to the given prefix, starting from this node.

(Inherited from INode)
LookupPrefix(String)

Look up the prefix associated to the given namespace URI, starting from this node.

(Inherited from INode)
Normalize() (Inherited from INode)
NormalizeDocument()

This method acts as if the document was going through a save and load cycle, putting the document in a "normal" form.

RemoveChild(INode)

Removes the child node indicated by oldChild from the list of children, and returns it.

(Inherited from INode)
RenameNode(INode, String, String)

Rename an existing node of type ELEMENT_NODE or ATTRIBUTE_NODE.

ReplaceChild(INode, INode)

Replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.

(Inherited from INode)
SetUserData(String, Object, IUserDataHandler)

Associate an object to a key on this node.

(Inherited from INode)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)

Applies to