retval is used to test the return of XML_Parse function which is ok if 1 is
returned and retval it directly return the the main function and used as an exit
value
if all the parsing part is done reset retval to 0 so that the command return 0
if everything ok