Re: DocumentTraversal

>Is there a parser-independent way to obtain a DocumentTraversal interface?
>Does this imply that the class implementing the (DOM Level 2) Document is
>guaranteed to also support DocumentTraversal?

Check hasFeature to find out if the document support the Traversal APIs. If
it does, you should be able to cast the Document into a DocumentTraversal.
(Details of casting are language-dependent, but should be the same for all
implementations that share a single language binding.)

______________________________________
Joe Kesselman  / IBM Research

Received on Monday, 9 April 2001 11:15:32 UTC