in reply to XML::Twig crashing on 64 bit Linux box.

The syntax error is being reported by the underlying expat library, which is apparently having problems with byte 68 of the XML file being parsed. Maybe some encoding issue...(which encoding does the XML file specify?) It would also help to know what content/chars/bytes there is at position 68.

  • Comment on Re: XML::Twig crashing on 64 bit Linux box.

Replies are listed 'Best First'.
Re^2: XML::Twig crashing on 64 bit Linux box.
by adrianxw (Acolyte) on Feb 25, 2007 at 11:43 UTC
    A data error..., hmmm, I hadn't considered that, but I do recall that Windows and Linux handle the end of lines differently.

    The first line of the XML buffer looks like this...

    <?xml version="1.0" encoding="ISO-8859-1" ?>

    ... I am about to write the buffer to a file and see exactly what is contained within. Certainly from visual inspection, it looks perfectly sound.

    Line 1 does not have 68 characters, at least, not visible, could be some trailing spaces. I'll know more when I've dumped the buffer.