in reply to new user of xml::twig
You have lots of mistakes, what examples are you following?
$in_twig->parsefile('in.xml'); # ERROR, out of order $in_twig = XML::Twig->new( # ERROR, obliterating $in_twig twig_roots => { violation => 1 }, ## ERROR, 1 is not + a callback twig_handlers => { ## um, this goes in twig_roots violation => sub { processViolation( $in_twig, $_, +\%out_twigs, \%opt ); }
I suggest you add strict/warnings ( Read this if you want to cut your development time in half! ) and copy one of these examples ?node_id=3989;BIT=use%20XML%3A%3ATwig;BIS=-;a=%5BAnonymous%20Monk%5D;xr=1, http://xmltwig.org/tutorial/, http://xmltwig.org/article
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: new user of xml::twig
by Anonymous Monk on Aug 03, 2012 at 05:42 UTC | |
by Anonymous Monk on Aug 03, 2012 at 09:17 UTC |