Fixed a bug in the validator, where if the XML contained a XML example, then validation would fail in some cases.