Scott Lanning > Mozilla-DOM > Mozilla::DOM::Document

Download:
Mozilla-DOM-0.23.tar.gz

Annotate this POD

CPAN RT

New  2
Open  5
View/Report Bugs
Source  

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)

$attr = $document->CreateAttributeNS($namespaceURI, $qualifiedName)

$node = $document->CreateCDATASection($text)

$node = $document->CreateComment($text)

$doc_fragment = $document->CreateDocumentFragment()

$element = $document->CreateElement($tagname)

$element = $document->CreateElementNS($namespaceURI, $qualifiedName)

$node = $document->CreateEntityReference($name)

$node = $node = $document->CreateProcessingInstruction($target, $text)

$textnode = $document->CreateTextNode($text)

$document_type = $document->GetDoctype()

$element = $document->GetDocumentElement()

$element = $document->GetElementById($elementId)

$domlist = $document->GetElementsByTagName($tagname)

In scalar context, returns a Mozilla::DOM::NodeList. In list context, returns a list of Mozilla::DOM::Elements.

$element = $document->GetElementsByTagNameNS($namespaceURI, $localName)

In scalar context, returns a Mozilla::DOM::NodeList. In list context, returns a list of Mozilla::DOM::Elements.

$dom_implementation = $document->GetImplementation()

$document->ImportNode($node, $deep)

$deep = boolean

SEE ALSO ^

Mozilla::DOM

COPYRIGHT ^

Copyright (C) 2005-2007, Scott Lanning

This software is licensed under the LGPL. See Mozilla::DOM for a full notice.

syntax highlighting: