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>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/MaTIPpa2GmDVhK0RArxIAJ9tRkb+Of9UTF+cijpj7K5yNrj0+ACcCCjV
NdQU3SkUiwY6Tktsl3ZjtsM=
=aN5S
-----END PGP SIGNATURE-----
Received on Wednesday, 6 August 2003 20:55:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:57 GMT