Re: [xml] when the xmlDoc is available on parsing chunk?
- From: Daniel Veillard <veillard redhat com>
- To: Kang Jeong-Hee <Keizi mail co kr>
- Cc: xml gnome org
- Subject: Re: [xml] when the xmlDoc is available on parsing chunk?
- Date: Sat, 15 Feb 2003 07:01:28 -0500
On Sat, Feb 15, 2003 at 09:51:22AM +0900, Kang Jeong-Hee wrote:
Hi.
I'm trying to use libgdome as DOM engine for http://gybe.sf.net/
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
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]