xp_parse takes as argument XML In a string, not a file name

On Wednesday, May 7, 2014, Tomas Lycken <[email protected]> wrote:

> I tried using LibExpat (https://github.com/amitmurthy/LibExpat.jl) to
> parse an xml file, but ran into the following:
>
> julia> using LibExpat
>
> julia> xp_parse("iter.xml")
> ERROR: "ErrorException(\"Error parsing document : 0\"), syntax error, 1,
> 1, 1"
>  in error at error.jl:21
>  in xp_parse at /home/tlycken/.julia/v0.3/LibExpat/src/LibExpat.jl:288
>
> The xml file validates at http://www.w3schools.com/xml/xml_validator.asp,
> so there is no syntax error in the file that I can make myself easily aware
> of, and I don't understand enough of the error message (which seems
> somewhat malformed, doesn't it?) to track it down manually (the file is
> 136K, script-generated, so I'm not so keen on proof-reading it by eye...).
>
> Is this a problem with LibExpat or with my file? How do I troubleshoot and
> fix it?'
>
> Thanks in advance,
>
> // Tomas
>

Reply via email to