你可以先保存为FILE,好象还有其它的输入类,有FILE,URL 等等,看看API吧。

解决方案 »

  1.   

    SAXParser:
    parsepublic void parse(java.lang.String uri,
                      DefaultHandler dh)
               throws SAXException,
                      java.io.IOException
    Parse the content described by the giving Uniform Resource Identifier (URI) as XML using the specified DefaultHandler.Parameters:uri - The location of the content to be parsed.
    dh - The SAX DefaultHandler to use.Throws:java.io.IOException - If any IO errors occur.
    java.lang.IllegalArgumentException - If the uri is null.
    SAXException - If the underlying parser throws a SAXException while parsing.See Also: DocumentHandler
      

  2.   

    SAXReader(filename):local or remote.