private void ImportFromDTD () { entities = new XmlNamedNodeMap (this); notations = new XmlNamedNodeMap (this); foreach (DTDEntityDeclaration decl in DTD.EntityDecls.Values) { XmlNode n = new XmlEntity (decl.Name, decl.NotationName, decl.PublicId, decl.SystemId, OwnerDocument); entities.SetNamedItem (n); } foreach (DTDNotationDeclaration decl in DTD.NotationDecls.Values) { XmlNode n = new XmlNotation (decl.LocalName, decl.Prefix, decl.PublicId, decl.SystemId, OwnerDocument); notations.SetNamedItem (n); } }
private void ImportFromDTD() { this.entities = new XmlNamedNodeMap(this); this.notations = new XmlNamedNodeMap(this); foreach (DTDNode dtdnode in this.DTD.EntityDecls.Values) { DTDEntityDeclaration dtdentityDeclaration = (DTDEntityDeclaration)dtdnode; XmlNode namedItem = new XmlEntity(dtdentityDeclaration.Name, dtdentityDeclaration.NotationName, dtdentityDeclaration.PublicId, dtdentityDeclaration.SystemId, this.OwnerDocument); this.entities.SetNamedItem(namedItem); } foreach (DTDNode dtdnode2 in this.DTD.NotationDecls.Values) { DTDNotationDeclaration dtdnotationDeclaration = (DTDNotationDeclaration)dtdnode2; XmlNode namedItem2 = new XmlNotation(dtdnotationDeclaration.LocalName, dtdnotationDeclaration.Prefix, dtdnotationDeclaration.PublicId, dtdnotationDeclaration.SystemId, this.OwnerDocument); this.notations.SetNamedItem(namedItem2); } }
private void ImportFromDTD() { entities = new XmlNamedNodeMap(this); notations = new XmlNamedNodeMap(this); foreach (DTDEntityDeclaration decl in DTD.EntityDecls.Values) { XmlNode n = new XmlEntity(decl.Name, decl.NotationName, decl.PublicId, decl.SystemId, OwnerDocument); entities.SetNamedItem(n); } foreach (DTDNotationDeclaration decl in DTD.NotationDecls.Values) { XmlNode n = new XmlNotation(decl.LocalName, decl.Prefix, decl.PublicId, decl.SystemId, OwnerDocument); notations.SetNamedItem(n); } }
internal DOMNotation(XmlNotation/*!*/ xmlNotation) : base(ScriptContext.CurrentContext, true) { this.XmlNotation = xmlNotation; }