DTD parser?

Jonathan Stowe jns at gellyfish.com
Fri Jun 1 18:23:41 BST 2007


On Fri, 2007-06-01 at 17:59 +0100, Andy Armstrong wrote:
> On 1 Jun 2007, at 17:29, Andy Armstrong wrote:
> > On 1 Jun 2007, at 17:10, Jonathan Stowe wrote:
> >> XML::LibXML's XML::LibXML::Dtd seems to work luverly but it does
> >> somewhat depend on what you want to do with it.
> >
> > Trying it now, thanks.
> 
> Except installing XML::LibXML doesn't actually install XML::LibXML::Dtd.
> 
> $ find . -iname \*dtd\*
> ./example/bad.dtd
> ./example/complex/complex.dtd
> ./example/complex/dtd
> ./example/complex/dtd/f.dtd
> ./example/complex/dtd/g.dtd
> ./example/dtd.xml
> ./example/ext_ent.dtd
> ./example/test.dtd
> ./lib/XML/LibXML/Dtd.pod
> ./t/07dtd.t
> ./t/13dtd.t
> 
> No Dtd.pm. After installation:
> 
> $ perl -MXML::LibXML::Dtd
> Can't locate XML/LibXML/Dtd.pm in @INC (@INC contains: <normal stuff> ).
> BEGIN failed--compilation aborted.
> 
> This ten minute job is fated :)
> 
No no that's fine - it's in the same file as the same XML::LibXML or
something:

  bash-3.1$ perl -MXML::LibXML -e'$dtd = XML::LibXML::Dtd->new()'
  Usage: new(CLASS, external, system) at -e line 1.

/J\


More information about the london.pm mailing list