Added function xmlCheckRootElement().