IBM®
跳转到主要内容
    中国 [选择]    使用条款
 
 
Select a scope: Search for:    
    首页    产品    服务与解决方案     支持与下载    个性化服务    
跳转到主要内容

developerWorks 中国  >  XML | Web development  >

Listing 1

developerWorks

返回原文..


		
	/**
 * 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 ...
  }
}
		
	   
	   

返回原文.

    关于 IBM 隐私条约 联系 IBM 使用条款