 |
返回原文..
/**
* Retrieve an HTML page, convert the source to XML,
* and write the result to a file.
*/
public static void main(String args[]) {
try {
Document doc = XMLHelper.tidyHTML("http://weather.yahoo.com/forecast/Seattle_WA_US_f.html");
XMLHelper.outputXMLToFile(doc, "XML" + File.separator + "weather.xml");
} catch (XMLHelperException xmle) {
// ... Do Something ...
}
}
|
返回原文.
|  |
|