Check if the to be parsed xml document is a valid wsdl or schema document. Bug fixes.