Fixed parser state reset in xml_read_reset() (#21)

+ Increased readability of outputted xml