Re: [xml] Getting crashes with xmlFreeDoc()



Well that's *IT*... that is the whole function.
Nothing more.

Now if you're asking how I get the document parsed in
the first place (I don't have a crystal ball either),
then here it is:

When it's an XML document (as XHTML):
xmlDocPtr XHTMLParsedDoc = xmlReadMemory(cString,
strlen(cString), "noname.xml", encoding,
XML_PARSE_NOERROR);

Otherwise when it's just html:
htmlParserCtxtPtr
parserContext=htmlCreateMemoryParserCtxt(cString,
strlen(cString));
htmlParseDocument(parserContext);
XHTMLParsedDoc =parserContext->myDoc;
htmlFreeParserCtxt(parserContext);


--- Daniel Veillard <veillard redhat com> wrote:
On Thu, Mar 17, 2005 at 03:03:07PM -0800, Sebastien
Boisvert wrote:
Any ideas?

  no idea without a reproduceable example, sorry, I
still don't use
a cristal ball ...

Daniel


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



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