protected virtual void OnXmlDocumentLoaded() { XmlDocumentLoadedDelegate handler = XmlDocumentLoaded; if (handler != null) handler(); }