fixed pretty xml generation and xml_node namespacing