rewrite of XML::Simple for XML structures
