xml_handler based on C library