{
reader.MoveToContent ();
if (reader.NodeType != XmlNodeType.Element ||
- reader.NamespaceURI != Nvdl.BuiltInValidationUri)
+ reader.NamespaceURI != Nvdl.BuiltInValidationNamespace)
return null;
return new NvdlBuiltInValidatorGenerator (reader.LocalName == "allow");
}
public override bool Read ()
{
- if (Reader.Read () && !allow)
+ if (!Reader.Read ())
+ return false;
+ if (!allow)
throw new NvdlValidationException (String.Format ("The NVDL script does not allow an element whose namespace is '{0}'", Reader.NamespaceURI), Reader as IXmlLineInfo);
- return false;
+ return true;
}
}
}