NAME

XML::LibXML::Element - The DOM Element Class

SYNOPSIS

use XML::LibXML::Element;

$node = XML::LibXML::Element->new( $name )
$node->setAttribute( $aname, $avalue );
$avalue = $node->getAttribute( $aname );
$node->removeAttribute( $aname );
@nodes = $node->getElementsByTagName($tagname);
$node->appendWellBalancedChunk( $chunk )
$node->appendTextNode( $PCDATA )

DESCRIPTION

Methods

new

This function creates a new node unbound to any DOM.

setAttribute

This method sets or replaces the node's attribute $aname to the value $avalue

getAttribute

If $node has an attribute with the name $aname , the value of this attribute will get returned.

removeAttribute

The method removes the attribute $aname from the node's attribute list, if the attribute can be found.

getElementsByTagName

The function gives direct access to all childnodes of the current node with the same tagname. It makes things a lot easier if you need to handle big datasets.

appendWellBalancedChunk

Sometimes it is nessecary to append a string coded XML Tree to a node. appendWellBalancedChunk will do the trick for you. But this is only done if the String is well-balanced .

appendTextNode

This wrapper function lets you add a string directly to an element node.

SEE ALSO

XML::LibXML, XML::LibXML::Node, XML::LibXML::Document, XML::LibXML::Text, XML::LibXML::Comment

VERSION

0.90_a