Remove unused code from xml detector

Change-Id: I3f8910017f60dd61a186c29e48a4a082010b989a
Use the show method directly

Change-Id: If4e11ae1fda86b612aeeed94b1cde4a5711c6359