simple api for xml