P is for Practical | |
PerlMonks |
XML::Parser Issuesby shug94 (Sexton) |
on Aug 06, 2009 at 01:39 UTC ( [id://786278]=perlquestion: print w/replies, xml ) | Need Help?? |
shug94 has asked for the wisdom of the Perl Monks concerning the following question:
I am attempting to use the XML::Parser module to parse an xml file. I am running ActiveState's ActivePerl on a windows box, and I am running the script from an Apache Tomcat Server.
I get the following error whenever I try to parse the xml:
The fact that it tries to access byte '-1' is concerning. Line 187 of Parser.pm looks like this, so I think it might be a problem with the expat package? 187: $result=$expat->parse($arg); I have verified my xml at the following web address: http://www.w3schools.com/Dom/dom_validate.asp I have also removed my more complex xml and replaced it with simple xml and it still doesn’t work. What can I do to fix this problem? I am struggling to find help on the web. The general consensus with this problem (according to google) seems to be that the xml files are invalid or reference unavailable external files. With my code this is not the case. The code I use for opening and (attempting) to parse the file:
If any of you can point me in the right direction, then I would appreciate it greatly, Thanks in advance, Cameron
Back to
Seekers of Perl Wisdom
|
|