Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    XML::DOM::Document 1.44

    Download button

    No screenshots available
    Downloads: 2,932  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Excellent (5.0/5)
    1 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    XML::DOM Team | More programs
    Perl Artistic License / FREE
    July 14th, 2006, 16:17 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    XML::DOM::Document description

    XML::DOM::Document is an XML document node in XML::DOM.

    XML::DOM::Document is an XML document node in XML::DOM.

    XML::DOM::Document extends XML::DOM::Node.

    It is the main root of the XML document structure as returned by XML::DOM::Parser::parse and XML::DOM::Parser::parsefile.

    Since elements, text nodes, comments, processing instructions, etc. cannot exist outside the context of a Document, the Document interface also contains the factory methods needed to create these objects. The Node objects created have a getOwnerDocument method which associates them with the Document within whose context they were created.

    METHODS

    getDocumentElement

    This is a convenience method that allows direct access to the child node that is the root Element of the document.

    getDoctype

    The Document Type Declaration (see DocumentType) associated with this document. For HTML documents as well as XML documents without a document type declaration this returns undef. The DOM Level 1 does not support editing the Document Type Declaration.

    Not In DOM Spec: This implementation allows editing the doctype. See XML::DOM::ignoreReadOnly for details.

    getImplementation

    The DOMImplementation object that handles this document. A DOM application may use objects from multiple implementations.

    createElement (tagName)

    Creates an element of the type specified. Note that the instance returned implements the Element interface, so attributes can be specified directly on the returned object.

    DOMExceptions:

    INVALID_CHARACTER_ERR

    Raised if the tagName does not conform to the XML spec.

    createTextNode (data)

    Creates a Text node given the specified string.

    createComment (data)

    Creates a Comment node given the specified string.

    createCDATASection (data)

    Creates a CDATASection node given the specified string.

    createAttribute (name [, value [, specified ]])

    Creates an Attr of the given name. Note that the Attr instance can then be set on an Element using the setAttribute method.

    Not In DOM Spec: The DOM Spec does not allow passing the value or the specified property in this method. In this implementation they are optional.

    Parameters: value The attribute's value. See Attr::setValue for details. If the value is not supplied, the specified property is set to 0. specified Whether the attribute value was specified or whether the default value was used. If not supplied, it's assumed to be 1.

    DOMExceptions:

    INVALID_CHARACTER_ERR

    Raised if the name does not conform to the XML spec.

    createProcessingInstruction (target, data)

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

    Parameters: target The target part of the processing instruction. data The data for the node.

    DOMExceptions:

    INVALID_CHARACTER_ERR

    Raised if the target does not conform to the XML spec.

    createDocumentFragment

    Creates an empty DocumentFragment object.

    createEntityReference (name)

    Creates an EntityReference object.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Perl module | XML DOM | XML Document | XML::DOM::Document | XML | DOM

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM