You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Travis Shirk <tr...@pobox.com> on 2001/09/20 00:27:07 UTC

FILTER_REJECT vs. FILTER_SKIP

Hello,

What are the semantic differences beween the FILTER_REJECT
and FILTER_SKIP return codes from acceptNode?  I'm using a
DOM_NodeIterator.

Are there differnces with how a TreeWalker and NodeIterator
inperpret these two values?

Also, why doesn't DOM_NodeFilter::acceptNode return a
DOM_NodeFilter::FilterAction instead of a short?

The same question with regards to DOM_Node::getNodeType()?
I have a function which takes DOM_Node::NodeType args and
I'm forced to cast like this:

func((DOM_Node::NodeType)node.getNodeType());

Declaring func to take an int is lame; it defeats the
purpose of NodeType being decalred enum.

Travis
-- 
Travis Shirk <travis at pobox dot com>
Mathematics is God and Knuth is our prophet.


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: FILTER_REJECT vs. FILTER_SKIP

Posted by Susanna <su...@hi-teck.com>.
Hello!
I search any examples of source codes writing on C/C++ where using DOM
(XML). I am download "xerces" files, but there is not clear description
(writing). Where I can find examples (C/C++), where using DOM(XML).

Thank You for advance
Susanna Harutyunyan


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org