WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

@mozilla.org/xml/xml-document;1

This component implements the following interfaces:

Constants

PRUint16 nsIDOM3Node.DOCUMENT_POSITION_DISCONNECTED = 1
PRUint16 nsIDOM3Node.DOCUMENT_POSITION_PRECEDING = 2
PRUint16 nsIDOM3Node.DOCUMENT_POSITION_FOLLOWING = 4
PRUint16 nsIDOM3Node.DOCUMENT_POSITION_CONTAINS = 8
PRUint16 nsIDOM3Node.DOCUMENT_POSITION_CONTAINED_BY = 16
PRUint16 nsIDOM3Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 32
The nsIDOMNode interface is the primary datatype for the entire Document Object Model. It represents a single node in the document tree.

For more information on this interface please see http://www.w3.org/TR/DOM-Level-2-Core/

PRUint16 nsIDOMNode.ELEMENT_NODE = 1
PRUint16 nsIDOMNode.ATTRIBUTE_NODE = 2
PRUint16 nsIDOMNode.TEXT_NODE = 3
PRUint16 nsIDOMNode.CDATA_SECTION_NODE = 4
PRUint16 nsIDOMNode.ENTITY_REFERENCE_NODE = 5
PRUint16 nsIDOMNode.ENTITY_NODE = 6
PRUint16 nsIDOMNode.PROCESSING_INSTRUCTION_NODE = 7
PRUint16 nsIDOMNode.COMMENT_NODE = 8
PRUint16 nsIDOMNode.DOCUMENT_NODE = 9
PRUint16 nsIDOMNode.DOCUMENT_TYPE_NODE = 10
PRUint16 nsIDOMNode.DOCUMENT_FRAGMENT_NODE = 11
PRUint16 nsIDOMNode.NOTATION_NODE = 12

Properties

readonly nsIDOMElement nsIDOMNSDocument.activeElement

PRBool nsIDOMXMLDocument.async

Whether to load synchronously or asynchronously. The default is async==true.

readonly nsIDOMNamedNodeMap nsIDOMNode.attributes

readonly DOMString nsIDOM3Node.baseURI

readonly DOMString nsIDOMNSDocument.characterSet

readonly nsIDOMNodeList nsIDOMNode.childNodes

readonly DOMString nsIDOMNSDocument.contentType

readonly nsIDOMAbstractView nsIDOMDocumentView.defaultView

The nsIDOMDocumentView interface is a datatype for a document that supports views in the Document Object Model.

For more information on this interface please see http://www.w3.org/TR/DOM-Level-2-Views

DOMString nsIDOMNSDocument.dir

readonly nsIDOMDocumentType nsIDOMDocument.doctype

The nsIDOMDocument interface represents the entire HTML or XML document. Conceptually, it is the root of the document tree, and provides the primary access to the document's data. Since elements, text nodes, comments, processing instructions, etc. cannot exist outside the context of a Document, the nsIDOMDocument interface also contains the factory methods needed to create these objects.

For more information on this interface please see http://www.w3.org/TR/DOM-Level-2-Core/

readonly nsIDOMElement nsIDOMDocument.documentElement

DOMString nsIDOM3Document.documentURI

readonly nsIDOMDOMConfiguration nsIDOM3Document.domConfig

readonly nsIDOMNode nsIDOMNode.firstChild

readonly nsIDOMDOMImplementation nsIDOMDocument.implementation

readonly DOMString nsIDOM3Document.inputEncoding

readonly nsIDOMNode nsIDOMNode.lastChild

readonly DOMString nsIDOMNSDocument.lastModified

readonly DOMString nsIDOMNSDocumentStyle.lastStyleSheetSet

readonly DOMString nsIDOMNode.localName

readonly nsIDOMLocation nsIDOMNSDocument.location

readonly DOMString nsIDOMNode.namespaceURI

readonly nsIDOMNode nsIDOMNode.nextSibling

readonly DOMString nsIDOMNode.nodeName

readonly PRUint16 nsIDOMNode.nodeType

DOMString nsIDOMNode.nodeValue

readonly nsIDOMDocument nsIDOMNode.ownerDocument

readonly nsIDOMNode nsIDOMNode.parentNode

readonly DOMString nsIDOMNSDocumentStyle.preferredStyleSheetSet

This attribute must return the preferred style sheet set as set by the author. It is determined from the order of style sheet declarations and the Default-Style HTTP headers, as eventually defined elsewhere in the Web Apps 1.0 specification. If there is no preferred style sheet set, this attribute must return the empty string. The case of this attribute must exactly match the case given by the author where the preferred style sheet is specified or implied. This attribute must never return null.

DOMString nsIDOMNode.prefix

readonly nsIDOMNode nsIDOMNode.previousSibling

readonly DOMString nsIDOMNSDocument.referrer

DOMString nsIDOMNSDocumentStyle.selectedStyleSheetSet

This attribute indicates which style sheet set is in use. This attribute is live; changing the disabled attribute on style sheets directly will change the value of this attribute.

If all the sheets that are enabled and have a title have the same title (by case-sensitive comparisons) then the value of this attribute must be exactly equal to the title of the first enabled style sheet with a title in the styleSheets list. Otherwise, if style sheets from different sets are enabled, then the return value must be null (there is no way to determine what the currently selected style sheet set is in those conditions). Otherwise, either all style sheets that have a title are disabled, or there are no alternate style sheets, and selectedStyleSheetSet must return the empty string.

Setting this attribute to the null value must have no effect.

Setting this attribute to a non-null value must call enableStyleSheetsForSet() with that value as the function's argument, and set lastStyleSheetSet to that value.

From the DOM's perspective, all views have the same selectedStyleSheetSet. If a UA supports multiple views with different selected alternate style sheets, then this attribute (and the StyleSheet interface's disabled attribute) must return and set the value for the default view.

PRBool nsIDOM3Document.strictErrorChecking

readonly nsIDOMStyleSheetList nsIDOMDocumentStyle.styleSheets

readonly nsIDOMDOMStringList nsIDOMNSDocumentStyle.styleSheetSets

This must return the live list of the currently available style sheet sets. This list is constructed by enumerating all the style sheets for this document available to the implementation, in the order they are listed in the styleSheets attribute, adding the title of each style sheet with a title to the list, avoiding duplicates by dropping titles that match (case-sensitively) titles that have already been added to the list.

DOMString nsIDOM3Node.textContent

DOMString nsIDOMNSDocument.title

readonly DOMString nsIDOM3Document.xmlEncoding

PRBool nsIDOM3Document.xmlStandalone

DOMString nsIDOM3Document.xmlVersion

Methods

InterfaceMethod
nsIDOM3Document nsIDOMNode adoptNode ( nsIDOMNode source )
nsIDOMNode nsIDOMNode appendChild ( nsIDOMNode newChild )
nsIDOMNode nsIDOMNode cloneNode ( PRBool deep )
nsIDOM3Node PRUint16 compareDocumentPosition ( nsIDOMNode other )
nsIDOMDocument nsIDOMAttr createAttribute ( DOMString name )
nsIDOMDocument nsIDOMAttr createAttributeNS ( DOMString namespaceURI , DOMString qualifiedName )
nsIDOMDocument nsIDOMCDATASection createCDATASection ( DOMString data )
nsIDOMDocument nsIDOMComment createComment ( DOMString data )
nsIDOMDocument nsIDOMDocumentFragment createDocumentFragment ( )
nsIDOMDocument nsIDOMElement createElement ( DOMString tagName )
nsIDOMDocument nsIDOMElement createElementNS ( DOMString namespaceURI , DOMString qualifiedName )
nsIDOMDocument nsIDOMEntityReference createEntityReference ( DOMString name )
nsIDOMDocumentEvent nsIDOMEvent createEvent ( DOMString eventType )
nsIDOMDocumentTraversal nsIDOMNodeIterator createNodeIterator ( nsIDOMNode root , PRUint32 whatToShow , nsIDOMNodeFilter filter , PRBool entityReferenceExpansion )
nsIDOMDocument nsIDOMProcessingInstruction createProcessingInstruction ( DOMString target , DOMString data )
nsIDOMDocumentRange nsIDOMRange createRange ( )
nsIDOMDocument nsIDOMText createTextNode ( DOMString data )
nsIDOMDocumentTraversal nsIDOMTreeWalker createTreeWalker ( nsIDOMNode root , PRUint32 whatToShow , nsIDOMNodeFilter filter , PRBool entityReferenceExpansion )
nsIDOMNSDocument nsIDOMElement elementFromPoint ( PRInt32 x , PRInt32 y )
nsIDOMNSDocumentStyle void enableStyleSheetsForSet ( DOMString name )
nsIDOMXMLDocument nsIDOMRange evaluateFIXptr ( DOMString expression )
nsIDOMXMLDocument nsIXPointerResult evaluateXPointer ( DOMString expression )
nsIDOMNSDocument nsIBoxObject getBoxObjectFor ( nsIDOMElement elt )
nsIDOMDocument nsIDOMElement getElementById ( DOMString elementId )
nsIDOMNSDocument nsIDOMNodeList getElementsByClassName ( DOMString classes )
nsIDOMDocument nsIDOMNodeList getElementsByTagName ( DOMString tagname )
nsIDOMDocument nsIDOMNodeList getElementsByTagNameNS ( DOMString namespaceURI , DOMString localName )
nsIDOM3Node nsISupports getFeature ( DOMString feature , DOMString version )
nsIDOM3Node nsIVariant getUserData ( DOMString key )
nsIDOMNode PRBool hasAttributes ( )
nsIDOMNode PRBool hasChildNodes ( )
nsIDOMNSDocument PRBool hasFocus ( )
nsIDOMDocument nsIDOMNode importNode ( nsIDOMNode importedNode , PRBool deep )
nsIDOMNode nsIDOMNode insertBefore ( nsIDOMNode newChild , nsIDOMNode refChild )
nsIDOM3Node PRBool isDefaultNamespace ( DOMString namespaceURI )
nsIDOM3Node PRBool isEqualNode ( nsIDOMNode arg )
nsIDOM3Node PRBool isSameNode ( nsIDOMNode other )
nsIDOMNode PRBool isSupported ( DOMString feature , DOMString version )
nsIDOMXMLDocument PRBool load ( DOMString url )
nsIDOM3Node DOMString lookupNamespaceURI ( DOMString prefix )
nsIDOM3Node DOMString lookupPrefix ( DOMString namespaceURI )
nsIDOMNode void normalize ( )
nsIDOM3Document void normalizeDocument ( )
nsIDOMNode nsIDOMNode removeChild ( nsIDOMNode oldChild )
nsIDOM3Document nsIDOMNode renameNode ( nsIDOMNode node , DOMString namespaceURI , DOMString qualifiedName )
nsIDOMNode nsIDOMNode replaceChild ( nsIDOMNode newChild , nsIDOMNode oldChild )
nsIDOM3Node nsIVariant setUserData ( DOMString key , nsIVariant data , nsIDOMUserDataHandler handler )

Reference documentation is generated from Mozilla's source.