From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Mon Apr 10 2000 - 09:07:33 EDT
On Mon, Apr 10, 2000 at 02:38:12PM +0200, Nadine Peyrouze wrote:
>
>
> Is there any way to parse a xml file without storing comments in the
> generated
> in-memory xml tree ? If not, what is the best way to parse tree and keep
> significant
> nodes (check node type != XML_COMMENT_NODE ??).
You will have to use the routines providing your a parsing context
before starting the parsing (I already sent a couple of examples on
the list about this). Then override the ctxt->sax->comment to NULL
this should avoid any comment node (or comment callback) being generated.
Daniel
-- Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes | Today's Bookmarks : Tel : +33 476 615 257 | 655, avenue de l'Europe | Linux XML libxml WWW Fax : +33 476 615 207 | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind http://www.w3.org/People/all#veillard%40w3.org | RPM badminton Kaffe ---- Message from the list xml@xmlsoft.org Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@xmlsoft.org
This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:30:10 EDT