Use XPath/XPathFactory to get nodes values.