[gdome]ANN: XML::GDOME 0.7.0pre1



XML::GDOME is a Perl module that provides the DOM Level 2 Core API
for accessing XML documents.

It is a XS wrapper around the libgdome library, located
at http://www.cs.unibo.it/~casarini/gdome2/

This is an experimental release.  Use with caution.  The API is subject to
wild change (see below).  It requires the latest libgdome code from
CVS.  My goal is to release 0.7.0 on CPAN when libgdome 0.7.0 is released.

To download go to:
http://tjmather.com/xml-gdome/

I would like to get feedback, in particular regarding the naming
convention for the attribute accessor methods.  Which of the following
styles is preferable?

1. JAVA STYLE (get and set prefix)
$foo = $node->getNodeValue();
$node->setNodeValue($foo);

2. libgdome Style (set_ prefix)
$foo = $node->nodeValue();
$node->set_nodeValue($foo);

3. Perl Style     (no prefix)
$foo = $node->nodeValue(); # gets nodeValue
$node->nodeValue($foo);    # sets nodeValue

In the current implementation of XML::GDOME, style 2 is used, since that
is what libgdome uses.  However I'm open to using the Java or Perl style
if it make sense.  Thoughts?

Enjoy,
TJ





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]