Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Announcing XML::Parser::Nodes

by tqisjim (Beadle)
on Oct 07, 2012 at 00:21 UTC ( #997648=note: print w/ replies, xml ) Need Help??


in reply to Announcing XML::Parser::Nodes

This relates a question about how CPAN assigns names: XML::Parser, for example, defines a namespace which could represent one of any of the following:

  1. A module that uses its namespace for private modules to comprise a larger solution.
  2. A package that defines a general topic- modules within the namespace generally relate to the topic, but are otherwise unrelated to each other.
  3. An interface whose namespace contains implementation modules.

Perl doesn't have any explicit declaration to distinguish one approach from the other. But XML::Parser is implemented as the last approach. And the Built_In_Styles member seems to be merely notational, not functional.

In fact, any module that shares the XML::Parser namespace can be invoked as a Style argument. I merely had to add some handler wrappers to get the desired output.


Comment on Re: Announcing XML::Parser::Nodes

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997648]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-12-26 04:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (165 votes), past polls