Java获取Google天气预报实例代码(二)
("forecast_conditions");// 获得XML文档的forecast_conditions元素
NodeList n2 = nl.item(0).getChildNodes();// 获得第一个forecast_condition的全部子节点
str = "今天是"
n2.item(0).getAttributes().item(0).getNodeva lue()
","
n2.item(4).getAttributes().item(0).getNodeva lue()
","// 获得n2的第五个元素current_conditions
&nbs