ParseDocumentType() private method

private ParseDocumentType ( XmlDocumentType dtNode ) : void
dtNode XmlDocumentType
return void
Esempio n. 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;
     }
 }
Esempio n. 2
0
 protected internal XmlDocumentType(string name, string?publicId, string?systemId, string?internalSubset, XmlDocument doc) : base(doc)
 {
     _name           = name;
     _publicId       = publicId;
     _systemId       = systemId;
     _namespaces     = true;
     _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;
     }
 }