add raw_xml method