W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2003

DOM LS: DOMParserFilter vs. DOMParser.parseWithContext's action argument

From: Christian Parpart <cparpart@surakware.net>
Date: Thu, 7 Aug 2003 03:00:56 +0200
To: www-dom@w3.org
Message-Id: <200308070301.00650.cparpart@surakware.net>

Hash: SHA1


well, I still have this problem, and no one replied to the very earlier post 
that included this issue, so I'll ask in a single post again :)

DOMParserFilter.startElement() and DOMParserFilter.acceptNode() are to be 
invoked by the DOMParser while parsing the input. 
DOMParser.parseWithContext() gets an addition action parameter that decides 
how to handle the parsed context.

So, there are some things not very clear for me:
if FILTER_ACCEPT is returned, the action parameter is to be handled
if FILTER_REJECT is returned, the action parameter is ignored(?)
if FILTER_SKIP is returned, how to handle the action parameter?
if FILTER_INTERRUPT is returned, how to handle the action parameter?

Furthermore, what exactly is a "context"? Will parseWithContext only parse a 
single Element node (including all child nodes)? Or can is parse more? If so, 
what? And, how many?

Many thanks,
Christian Parpart.

- -- 
 02:46:18 up 78 days, 17:49,  2 users,  load average: 0.12, 0.05, 0.05
Version: GnuPG v1.2.2 (GNU/Linux)

Received on Wednesday, 6 August 2003 20:55:52 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:11 UTC