made isvalidxml non static

Change-Id: I593f58674d146ef7201b72480aff7ba71b2ed3ff