Convert XML files into flat hashes with automatic naming via nested paths