AIndeed, you should use parsefile instead of parse in this case.
A shortcut is also to write directly my $twig= XML::Twig->parse( $fileLocation): in that case XML::Twig figures out that the argument to parse is not XML, so it looks for a file by that name.
In reply to Re: XML::Parser Error: invalid doc
by mirod
in thread XML::Parser Error: invalid doc
by zericm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |