Parsing XML with XPath in Java - Get data from XML file with Xpath and NodeList in Java
问题 I have this xml file and I want to get some values with Xpath. The half of job is done but I get some trouble in the last part of file(States Node) <?xml version="1.0" encoding="UTF-8"?> <favoris> <workflow codewf="wf1000"> <information> <title>wf1</title> <desc>description 1</desc> <nberState>2</nberState> <text>text text text text text text text</text> </information> <states> <state id="1" IDemployee="2">description1</state> <state id="2" IDemployee="3">description2</state> </states> <