XML Semantic Analyzer, Global Error Recovery and minor fixes