System.Xml.XmlLoader.ParseDocumentType C# (CSharp) Méthode

ParseDocumentType() private méthode

private ParseDocumentType ( XmlDocumentType dtNode ) : void
dtNode XmlDocumentType
Résultat void
        internal void ParseDocumentType(XmlDocumentType dtNode)
        {
            XmlDocument doc = dtNode.OwnerDocument;
            //if xmlresolver is set on doc, use that one, otherwise use the default one being created by xmlvalidatingreader
            if (doc.HasSetResolver)
                ParseDocumentType(dtNode, true, doc.GetResolver());
            else
                ParseDocumentType(dtNode, false, null);
        }

Same methods

XmlLoader::ParseDocumentType ( XmlDocumentType dtNode, bool bUseResolver, XmlResolver resolver ) : void

Usage Example

Exemple #1
0
 /// <include file='doc\XmlDocumentType.uex' path='docs/doc[@for="XmlDocumentType.XmlDocumentType"]/*' />
 /// <internalonly/>
 /// <devdoc>
 /// </devdoc>
 protected internal XmlDocumentType( string name, string publicId, string systemId, string internalSubset, XmlDocument doc ) : base( doc ) {
     this.name     = name;
     this.publicId = publicId;
     this.systemId = systemId;
     this.namespaces = true;
     this.internalSubset = internalSubset;
     Debug.Assert( doc != null );
     if ( !doc.IsLoading ) {
         doc.IsLoading = true;
         XmlLoader loader = new XmlLoader();
         loader.ParseDocumentType( this ); //will edit notation nodes, etc.
         doc.IsLoading = false;
     }
 }
All Usage Examples Of System.Xml.XmlLoader::ParseDocumentType