VengatatIndia has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: Twig usage
by Anonymous Monk on Jun 30, 2008 at 06:33 UTC
Re: Twig usage
by Your Mother (Archbishop) on Jun 30, 2008 at 16:01 UTC

    That's great because I am developing an XML Validation tool using XML::LibXML.

    # Updated with invalid tags instead of nesting. use XML::LibXML; use LWP::Simple "get"; my $dtd_str = get "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional +.dtd"; my $dtd = XML::LibXML::Dtd->parse_string($dtd_str); my $doc = XML::LibXML->new->parse_string(join"",<DATA>); $doc->validate($dtd); __END__ <p><nope>Oh, noes!</nope></p>

    Time!

    And thanks to the anonymonk above. I didn't know you could use "grep" on search.cpan.org. Nice.