Click here to get back home

XML Twig help

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
XML Twig help Rishi Dhupar 04-08-2005
Posted by Rishi Dhupar on April 8, 2005, 2:18 pm
Please log in for more thread options


Hi,

Just starting to learn Twig and Perl. Keep getting an error on this
line:

my $twig = XML::Twig->new(twig_roots => {
        'FormattedReportObjects/FormattedReportObject[@FieldName=""]'
=> &do_file
        });


It works with out the parameter test, but not with the @FieldName..

Isn't that how twig can do a test on FieldName first and if it is
it will then only run the function?

Thanks for the help,

RishiD



Similar ThreadsPosted
Using XML::Twig December 19, 2005, 4:59 pm
XML::Twig June 9, 2006, 1:50 pm
XML::Twig June 9, 2006, 6:27 pm
XML::Twig question December 23, 2007, 2:25 pm
Help with XML::Twig xpath syntax, please October 16, 2005, 6:56 pm
XML::Twig parseurl with input Headers/XML January 16, 2005, 10:58 pm
XML::Twig::XPath - strange problem November 10, 2005, 9:44 am
XML::Twig produces double encoded UTF-8 January 4, 2007, 3:36 pm
XML::Twig constructor disregarding map_xmlns - bug in module? August 29, 2004, 1:21 pm
Problem Parsing Huge XML file using XML::Twig April 23, 2007, 10:24 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap