Xml::grove and ecma script language binding
XML::Grove is similar in concept to the \s-1ECMA\s0 Script Language Binding to \s-1DOM\s0 Level 1 Core (Appendix E of the \s-1DOM\s0 Recommendation).
<http://www.w3.org/TR/REC-DOM-Level-1/ ecma-script-language-binding.html>
The \s-1ECMA\s0 Script Language Binding presents \s-1DOM\s0 properties as \s-1ECMA\s0 Script object properties. The same is true for XML::Grove, XML::Grove presents \s-1DOM\s0 properties as Perl blessed hashes.
The biggest difference between the \s-1ECMA\s0 Script Language Binding and XML::Grove is that XML::Grove uses a Perl hash for nodes, Perl arrays for NodeLists, Perl hashes for NamedNodeLists so those object classes don't exist in XML::Grove. Because those classes don't exist, you use ordinary Perl syntax for manipulating the \s-1DOM\s0 properties (lists and named node lists) instead of methods like `\*(C`nextSibling()\*(C'' or `\*(C`replaceChild()\*(C''. Element attributes in XML::Grove are stored in Perl hashes; attribute types are available through the document object.
Another difference is that XML::Grove attempts to marry the PerlSAX and \s-1DOM\s0 naming so that less (no?) name-changing occurs between using PerlSAX interfaces and filters and \s-1DOM\s0 modules. Where conflicts occur, the PerlSAX naming is used.
XML::Grove uses a blessed hash for nodes, so the node type is available using Perl's `\*(C`ref()\*(C'' instead of using a `\*(C`nodeType()\*(C'' method and all class names are prefixed with `\*(C`XML::Grove::\*(C''.
The following object descriptions are the most basic and common provided by many PerlSAX parsers. PerlSAX parsers often provide additional properties or objects, refer to your PerlSAX parser documentation for details.
The children of this object. This property is an array.
The entities declared in this document. This property is a hash of XML::Grove::Entity objects keyed by entity name.
The notations declared in this document. This property is a hash of XML::Grove::Notation objects keyed by notation name.
The tag type name for this element. This property is a string.
The attributes for this element. This property is a hash and it's hash values are strings (or arrays with some grove builders).
The children of this object. This property is an array of XML::Grove objects.
The text of the character data. This property is a string.
The text of the character data. This property is a string.
The \*(C`CData\*(C' object is called a \*(C`CDATASection\*(C' in \s-1DOM\s0.
The text of the character data. This property is a string.
The name of this notation. This property is a string.
The system identifier of this notation. This property is a string.
The public identifier of this notation. This property is a string.
The name of this entity. This property is a string.
The system identifier of this notation. This property is a string.
The public identifier of this notation. This property is a string.
The notation declared for this entity. This property is either the name of the notation as a string or an \*(C`XML::Grove::Notation\*(C' object.
The \*(C`PI\*(C' object is called a \*(C`ProcessingInstruction\*(C' in \s-1DOM\s0.
The target of the processing instruction. This property is a string.
The text of the processing instruction. This property is a string.