[xml] xmlParseMemory() problem

Hi Experts,
    I am using xmlParseMemory() to parse the content retrieved from the network, which is not well formatted.
    xmlParseMemory() can work for the first call.
    But if I create a loop to keep parsing the content continuously, this function will return NULL from the second call. If  I save the content to a file, and use xmlParseFile() to parse the contents in the same loop. It can work.  The libxml2 lib I use is libxml2-2.6.30 on Window XP.
    I am not sure whether there is more clean work than xmlFreeDoc() when using xmlParseMemory().

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