How to read an XML file using Java?

前端 未结 6 1424
醉梦人生
醉梦人生 2020-12-21 15:55

I need to read an XML file using Java. Its contents are something like


    
        C:/Input.csv         


        
6条回答
  •  梦毁少年i
    2020-12-21 16:35

    You can user external libraries like Castor https://web.archive.org/web/1/http://articles.techrepublic%2ecom%2ecom/5100-10878_11-1046622.html I have used castor in past. Here are few other links that might help. http://www.xml-training-guide.com/e-xml27.html

    http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/XMLReader.html http://www.cafeconleche.org/books/xmljava/chapters/ch07.html

提交回复
热议问题