Main Page | Report this Page
Computers Forum Index  »  Computer Languages (Perl - Modules)  »  Class::The::XML::Parser...
Page 1 of 1    

Class::The::XML::Parser...

Author Message
xuesheng...
Posted: Mon Oct 05, 2009 4:29 pm
Guest
Hi,
I have created a prototype of an XML Parser (a wrapper around the
XML::Parser) based on an idea of using a knowledge base about the
methods and invoking them via queries based referring to what the
class knows about them.

The prototype is here:
http://xuesheng.w.interia.pl/dla_programistow/Class-The-XML-Parser-0.01.tar.gz

It depends on the "core" module:
http://xuesheng.w.interia.pl/dla_programistow/Class-The-0.01.tar.gz

The name is subject to change, I just found some slightly related
classes in the "Class" namespace and permitted myself to call the
prototype "Class::The". This is my first contribution, though, I may
have done something wrong. There are also some tests (in the dir "t")
and quite a lot of pod in the code. Please take a look.

Best regards,
Pawel Biernacki
 
mirod...
Posted: Fri Oct 09, 2009 12:03 pm
Guest
xuesheng wrote:
Quote:
Hi,
I have created a prototype of an XML Parser (a wrapper around the
XML::Parser) based on an idea of using a knowledge base about the
methods and invoking them via queries based referring to what the
class knows about them.

The prototype is here:
http://xuesheng.w.interia.pl/dla_programistow/Class-The-XML-Parser-0.01.tar.gz

It depends on the "core" module:
http://xuesheng.w.interia.pl/dla_programistow/Class-The-0.01.tar.gz

The name is subject to change, I just found some slightly related
classes in the "Class" namespace and permitted myself to call the
prototype "Class::The". This is my first contribution, though, I may
have done something wrong. There are also some tests (in the dir "t")
and quite a lot of pod in the code. Please take a look.


If I understand correctly, you use a specialized language (with expressions like
path:alpha/beta or path:*/gamma, from the test code, the synopsis doesn't have
the 'path:' bit ) to trigger handlers that get passed the same arguments as
XML::Parser handlers. Is that correct? I am not sure I quite understand the
"knowledge base" part of your description.

How would this compare to existing modules like XML::Twig, XML::Rules or
XML:Very HappyT, which all have a similar model? Or even to XML::Parser Stream mode?

Some more examples, and an assessment of the benefits of using this module
instead of the other ones would be awelcome addition to the docs.

Also traditionally XML parsing modules are in the XML namespace. Which is very
crowded! Nevertheless I believe there would be a (slightly) better chance for
user to find your module if it was there instead of in the Class:: namespace.

--
mirod
 
 
Page 1 of 1    
All times are GMT
The time now is Mon Nov 30, 2009 12:27 pm