Xml detector modified