HandCoded.Meta.SchemaRelease.IsInstance C# (CSharp) Method

IsInstance() public method

Determines if the given XmlDocument is an instance of the XML grammar represented by this instance.
public IsInstance ( XmlDocument document ) : bool
document System.Xml.XmlDocument The to be tested.
return bool
        public override bool IsInstance(XmlDocument document)
        {
            if (recogniser.Recognises (this, document)) {
                XmlElement			root = document.DocumentElement;

                // TODO: Improve import detection
                return (true);
            }
            return (false);
        }