1
有沒有辦法將org.w3c.dom.Document的實例轉換爲org.apache.html.dom.HTMLDocumentImpl。將org.w3c.dom.Document轉換爲org.apache.html.dom.HTMLDocumentImpl
我需要解析Document中的圖像,並且HTMLDocumentImpl有一個提取圖像的方法。
我試過幾種方法,如類型轉換和importNode,但它不起作用。
我有一個看看這兩個API。它說org.apache.html.dom.HTMLDocumentImpl實現了org.w3c.dom.Document。 – sarahTheButterFly 2010-08-18 23:53:53
我已經意識到這一點。有什麼辦法將Document轉換爲HTMLDocumentImpl? – migscabral 2010-08-19 00:28:26