>>> import xmlobjects >>> test = xmlobjects.XMLObject(name='root_element') >>> test.new_test = 'asdf' >>> xmlobjects.to_xml_string(test) 'asdf' >>> test._namespace_ = 'http://blah.com' >>> test.another_test = 'yet another test' >>> xmlobjects.to_xml_string(test) 'asdf4yet another test'