1
這可能嗎?例如,如果我運行jSoup代碼:獲取w3c的名稱文件
Document source = Jsoup.connect("http://www.xmlFile.com/file.xml").get();
// Convert the Jsoup object to a w3c Document object with Apache.
return DOMBuilder.jsoup2DOM(source);
我現在有一個w3c Document
對象。有沒有辦法從該對象獲取file.xml
?我還沒有找到任何可以通知我的信息。
我提出了比解析URI更好的解決方案,但是這個問題完美地回答了這個問題。 :) – christopher