The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

SVG::DOM - Perform DOM (Document object model) manipulations of the SVG object.

SUMMARY

An API for accessing the SVG DOM.

AUTHOR

Ronan Oger, ronan@roasp.com

SEE ALSO

perl(1),SVG,SVG::XML,SVG::Element,SVG::Parser, SVG::Manual http://www.roasp.com/ http://www.perlsvg.com/ http://www.roitsystems.com/ http://www.w3c.org/Graphics/SVG/

Warning: This module is still in development and is subject to change.

Methods

 To pe provided:  $ref = $svg->getElementByID($id) 

Return the reference to the element which has id $id

 $ref = $svg->getFirstChild() 

return the reference of the first defined child of the current node

 $ref = $svg->getLastChild() 

return the array of references of the last defined child of the current node

 @array_of_Refs =  $svg->getChildren()

return the reference of the children of the current node

 $ref = $svg->getParent()

return the reference of the parent of the current node

 $ref = $svg->getSiblings()
  

return the reference to an array composed of references of the siblings of the current node

getElementName

 $val = $svg->getElementName()

return a string containing the element type of a reference to an node

$ref = $ref->getAttributes()

return a reference to a hash whose keys are the attribute name and the values are the attribute values.

$ref = $ref->getAttribute('attributeName')

return a string with the value of the attribute. $ref is the reference to the element that contains the attribute 'attributeName'.

 To pe provided: $ref = getCDATA ($ref)