Move to a correct solution and process the tree using XML::LibXML (until a Marpa XML parser -;)