It sounds like you're looking for the DOM's traversal objects (TreeWalker
and NodeIterator), which can provide a filtered view of the DOM's contents.
If you really want to filter the model as it's being constructed, I believe
that isn't currently supported. DOM Level 3 is considering adding that
capability in its Load/Save chapter. Meanwhile, if you need it now your
best bet is to use a SAX parser, a SAX-to-DOM builder, and a user-written
SAX filter plugged in between them that knows how to discard the
information you aren't interested in.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]