check for valid xml path