Duh. Thanks, Jameson. Once in a while I find myself feeling really stupid :)
// T On Wednesday, May 7, 2014 3:37:25 PM UTC+2, Ivar Nesje wrote: > > Judging from > LibExpat.jl#L282-L301<https://github.com/amitmurthy/LibExpat.jl/blob/3ee8e669b055c595e1d2d9273b66d73106422c13/src/LibExpat.jl#L282-L301> > it > seems like the C function returns an error code rc == XML_STATUS_ERROR == > 0, the code that tries to extract a more useful error message from libexpat > seems to be failing. > > > kl. 15:11:54 UTC+2 onsdag 7. mai 2014 skrev Tomas Lycken følgende: >> >> 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 >> >
