While working with XML data, you often don’t find the WSDL files and may end up manually working through the document to understand its structure. At my current project I ran into a few hundred XML files and had to analyze them to understand the data available. Here is a script I created which prints all the possible nodes in the input files
It outputs the following for the xml below
<?xml version="1.0" encoding="UTF-8"?>
Hope you find it useful!