posted 22 years ago
Brian,
To use Dhina's trick, you need to have a DTD, otherwise your parser cannot determine that your element has an "element only content model".
Another alternative (only if you use a DOM Level 2 Core compliant DOM implementation) would be to use a Node iterator or a Tree walker with the help of the DocumentTraversal interface which is implemented through the Document object. Below is an example using the Node iterator:
Cheers,
Beno�t
[This message has been edited by Beno�t d'Oncieu (edited August 29, 2001).]