GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  XML::DOM2::DOM::DOCUMENT (3)

.ds Aq ’

NAME



  XML::DOM2::DOM::Document



CONTENTS

DESCRIPTION



  Base class for document objects, extends the DOM with document specific methods.



METHODS

CW$class->createDocumentType( CW$qualifiedName, CW$publicId, CW$systemId, CW$dtd )



  Create a new XML Document Type.



CW$class->createDocument( CW$namespaceURI, CW$qualifiedName, CW$doctype )



  Creates a new XML Document.



CW$document->documentElement()



  Returns the main document as an element! its no longer a document object.



CW$document->documentType()



  Returns a document type object for this document.



CW$document->addId( CW$id, CW$element )



  Adds an id of an element, used internaly.



CW$document->removeId( CW$id )



  Removes an id of an element, used internaly.



CW$document->getElementById( CW$id )



  Returns the element with that id in this document.



CW$document->addElement( CW$element )



  Adds an element to the elements list, used internaly.



CW$document->removeElement( CW$element )



  Remove the specified element from the elements list, used internaly.



CW$document->getElements( CW$type )

CW$document->getElementsByType( CW$type )

CW$document->getElementsByName( CW$type )



  Get all elements of the specified type/tagName; if none is specified, get all elements in document.



CW$document->getElementNames()

CW$document->getElementTypes()



  Get all the element types in use in the document.



CW$document->addDefinition( CW$def )



  Add a definition to the document.



CW$document->definitions( )



  Return all definitions in document.



CW$document->getNamespace( CW$uri )



  Return a namespace based on the uri or prefix.



CW$document->createNamespace( CW$prefix, CW$uri )



  Create a new namespace within this document.



CW$document->addNamespace( CW$namespace )



  Add namespace to this document.



CW$document->removeNamespace( CW$namespace )



  Remove a namespace from this document.



CW$document->createElement( CW$name, CW%options )



  Creates a new element of type name.



CW$document->createElementNS( CW$namespace, CW$name, CW%options )



  Create an element in a namespace.



CW$document->createTextNode( CW$data )



  Create a textnode element.



CW$document->createComment( CW$data )



  Create a comment element



CW$document->createCDATASection( CW$data )



  create a CDATA element.



COPYRIGHT

Martin Owens, doctormo@cpan.org

SEE ALSO

XML::DOM2
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 XML::DOM2::DOM::DOCUMENT (3) 2007-11-21

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.