Login or sign up Lost password?
Login or sign up
Document doc = Document Builder Instance()Document Builder().parse( new Input Source("data.xml")); XPath xpath = XPath Instance()XPath(); Node List nodes = (Node List) xpath.evaluate("//employee/name[text()='old']", doc, XPath Constants.