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 Charlie Hart <ch...@nc.rr.com> on 2001/03/27 19:47:09 UTC

get children using attributes

Every element has a date and time attribute. I want to get only the
elements that have certain timestamps, say only those after 03/01/2001.
How can I select based on attribute or do I have to get them all and
then look at the attributes and select based on the criteria?
thanks...charlie


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


Re: get children using attributes

Posted by John Snelson <jp...@decisionsoft.com>.
Why not use a DOM_TreeWalker, made using
DOM_Document::createTreeWalker(), and define your own custom
DOM_NodeFilter to do the test on the timestamp attribute for you. That,
or use a DOM_NodeIterator, which is similar.

John

Charlie Hart wrote:
> 
> Every element has a date and time attribute. I want to get only the
> elements that have certain timestamps, say only those after 03/01/2001.
> How can I select based on attribute or do I have to get them all and
> then look at the attributes and select based on the criteria?
> thanks...charlie
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org

-- 
John Snelson, Software Engineer       DecisionSoft Ltd.
Telephone: +44-1865-203192            http://www.decisionsoft.com

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