Re: [xml] when the xmlDoc is available on parsing chunk?

On Sat, Feb 15, 2003 at 09:51:22AM +0900, Kang Jeong-Hee wrote:

I'm trying to use libgdome as DOM engine for

I think gybe should provide DOM at once parser begin.
so I guess *when* the xmlDoc(or htmlDoc) object is ready thru xmlParseChunk;
to fulfill gdome_xml_doc_mkref (xmlDoc *n) API
that checks n->_private or n->type or fail for confirming n is xmlDoc.

I've read testHTML.c. this sample does not give a clue;
doc = ctxt->myDoc; line of code appears after all the looping of parsing chunks.

  ctxt->myDoc is created at the very beginning of parsing.
If will certainly be available after the first call to xmlParseChunk().
But using the DOM tree while parsing should be done with a lot of caution,
and that is a gdome problem. I don't think DOM was designed to handle
documents which were not fully parsed. Check on the gdome list for this.


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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