public static void AssertNoErrors(this XmlParser parser)
 {
     parser.AssertErrorCount(0);
 }