Re: [xml] xmlParseFile gets interrupted



Hello.

On Sun, 30 Dec 2007 12:16:55 -0500
"Richard Whitney" <rwhitney juniper net> wrote:

Florian,

Are you trying to use xmlParseFile to retrieve the referenced URL?  If so, I do not think this function 
will help you. However, xmlNanoHTTPRead should accomplish what you are looking for:


That's what I want to do ;)

http://xmlsoft.org/html/libxml-nanohttp.html#xmlNanoHTTPRead

Actually it works with xmlParseFile(), e.g. this code
http://xmlsoft.org/tutorial/apd.html can handle URLs without problems.
It's just that I get this "error: Interrupted function call" message
when I want to use the function in the XMMS plugin...


Cheers,



Richard Whitney
Juniper Networks, Inc.
Systems Engineer
JNCIE-M #198
Cell 703.627.6093



Florian

----- Original Message -----
From: xml-bounces gnome org <xml-bounces gnome org>
To: xml gnome org <xml gnome org>
Sent: Sun Dec 30 07:57:30 2007
Subject: [xml] xmlParseFile gets interrupted

Hello,

I've got a problem with the xmlParseFile function. Currently I'm
working on a XMMS plugin and within this plugin I need to parse a XML
file.
The plugin consists mainly of a pthread called worker_function:

static void *worker_function(void *arg)
{
      [...]
      xmlDocPtr doc;
      char *docname[MAX_LENGHT_URL + 1];
      [...]
      doc = xmlParseFile(docname);
      [...]
}


When I call xmlParseFile I get the following error message:

error : Interrupted function call
I/O warning : failed to load external entity
"http://musicbrainz.org/ws/1/track/?type=xml&artist=%54%68%65%20%46%69%65%72%79%20%46%75%72%6e%61%63%65%73&limit=1&title=%41%75%74%6f%6d%61%74%69%63%20%48%75%73%62%61%6e%64";


Replacing docname with a local URI (e.g. file:///path/to/file) gives
the desired result (= the parsed XML file).
The loading of the above URL works in a seperate test program.


So the question is: how do I figure out what interrupts xmlParseFile?

Thanks in advance.

Greetings, Florian



-- 
Remember the three Rs: repetition, repetition, repetition! -- The Fall



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]