replace SimpleXML with WMcore functions from XMLTypeCheck

Change-Id: Ic78ac28ea1f36b61aa17ef1d66b03e7e5700ad04
TODO: Integrate XmlTypeCheckString to XmlTypeCheck