NAME
Mozilla::DOM::Document
Mozilla::DOM::Document is a wrapper around an instance of Mozilla's nsIDOMDocument interface. This inherits from Mozilla::DOM::Node.
* 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
* L<http:E<sol>E<sol>www.w3.orgE<sol>TRE<sol>DOM-Level-2-CoreE<sol>>
CLASS METHODS
$iid = Mozilla::DOM::Document->GetIID()
Pass this to QueryInterface.
METHODS
$node = $document->CreateAttribute($name)
$name (string)
$attr = $document->CreateAttributeNS($namespaceURI, $qualifiedName)
$namespaceURI (string)
$qualifiedName (string)
$node = $document->CreateCDATASection($text)
$data (string)
$node = $document->CreateComment($text)
$data (string)
$doc_fragment = $document->CreateDocumentFragment()
$element = $document->CreateElement($tagname)
$tagname (string)
$element = $document->CreateElementNS($namespaceURI, $qualifiedName)
$namespaceURI (string)
$qualifiedName (string)
$node = $document->CreateEntityReference($name)
$name (string)
$node = $node = $document->CreateProcessingInstruction($target, $text)
$target (string)
$data (string)
$textnode = $document->CreateTextNode($text)
$data (string)
$document_type = $document->GetDoctype()
$element = $document->GetDocumentElement()
$element = $document->GetElementById($elementId)
$elementId (string)
$domlist = $document->GetElementsByTagName($tagname)
$tagname (string)
Gah, this returns a NodeList, not a list of Elements. Which is lame because you can't call Element methods on Nodes... (Maybe in list context, a list of elements could be returned instead?)
$element = $document->GetElementsByTagNameNS($namespaceURI, $localName)
$namespaceURI (string)
$localName (string)
$dom_implementation = $document->GetImplementation()
$document->ImportNode($node, $deep)
$importedNode (Mozilla::DOM::Node)
$deep (boolean)
$deep = boolean
SEE ALSO
COPYRIGHT
Copyright (C) 2005, Scott Lanning
This software is licensed under the LGPL. See Mozilla::DOM for a full notice.