implements the xml processor