Java - Parsing xml using DOM

前端 未结 4 460
说谎
说谎 2020-12-12 07:07

I am trying to parse the following xml. I can access the WeekNumber easily but cannot access the children for EmployeeRatesLevelA and EmployeeRatesLevelB. The goal is to sav

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-12 07:12

    Element.getElementsByTagName("EmployeeRatesLevelA") where Element should be DataSet. Or you can use http://java.sun.com/javase/6/docs/api/org/w3c/dom/Node.html#getChildNodes()

    then filter all the childs until you find the ones you want to.

提交回复
热议问题