How can I reach to elements which have same name and recursive inclusion using Java XML? This has worked in python ElementTree, but for some reason I need to get this running in Java.I have tried:\[code\]String filepath = ("file.xml");DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();DocumentBuilder docBuilder = docFactory.newDocumentBuilder();Document doc = docBuilder.parse(filepath);NodeList nl = doc.getElementsByTagName("*/*/foo");\[/code\]Example\[code\]<foo> <foo> <foo> </foo> </foo></foo>\[/code\]