You can't select elements based on attributes in Xerces. You need Xalan
x-path support for that.
But my recomendation is that you inherit DOM_NodeFilter. Implement a
node filter that filters out the 'bad' nodes. And pass an instance of
your filter to a DOM_NodeIterator through the
DOM_Document::createNodeIterator member function.
Erik Rydgren
Mandarinen systems AB, Sweden
-----Original Message-----
From: Charlie Hart [mailto:[EMAIL PROTECTED]]
Sent: den 27 mars 2001 19:47
To: xerces forum
Subject: 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]