现有jdk1.3旧代码编写的一段代码(jdk1.3支持的是DOM1的),其中用到了org.w3c.dom.Element的getElementsByTagNameNS()方法
如今我们升级到jdk1.4,在jdk1.4中,支持的是DOM2标准的,因此org.w3c.dom.Element的getElementsByTagNameNS()无法取得任何的NodeList
所有请教大家,谁知道在jdk1.4中对等的可以替换DOM1的getElementsByTagNameNS()的方法是什么?

解决方案 »

  1.   

    How to translate a DOM level 1 special method "org.w3c.dom.Element.getElementsByTagNameNS()" in DOM level 2?I have some code finished by j2sdk1.3.(As we known, j2sdk1.3 only support DOM level 1.) In these code, there is task finished by the method of "org.w3c.dom.Element.getElementsByTagNameNS()".Now we have updated our applications from j2sdk1.3 to j2sdk1.4. And j2sdk1.4 support DOM level 2. So the method of "org.w3c.dom.Element.getElementsByTagNameNS()" can not get any NodeList.I have to post a new thread here hoping you can do me a favor. I only want to know how can I substitue a DOM level 2 special method for it? Any reply will be highly appreciated!Br,
    Chinesealbert