示例#1
0
        protected override DomNode CloneCore()
        {
            var result = OwnerDocument.CreateDocumentType(NodeName);

            result.CopyAnnotationsFrom(AnnotationList);
            return(result);
        }
示例#2
0
 // Creates a duplicate of this node.
 public override XmlNode CloneNode(bool deep)
 {
     Debug.Assert(OwnerDocument != null);
     return(OwnerDocument.CreateDocumentType(_name, _publicId, _systemId, _internalSubset));
 }
 public DomDocumentType CreateDocumentType(string name)
 {
     return(OwnerDocument.CreateDocumentType(name));
 }
 public DomDocumentType CreateDocumentType(string name, string publicId, string systemId)
 {
     return(OwnerDocument.CreateDocumentType(name, publicId, systemId));
 }
示例#5
0
 // Clone this node.
 public override XmlNode CloneNode(bool deep)
 {
     return(OwnerDocument.CreateDocumentType
                (name, publicId, systemId, internalSubset));
 }