protected override DomNode CloneCore()
        {
            var result = OwnerDocument.CreateProcessingInstruction(Target, Data);

            result.CopyAnnotationsFrom(AnnotationList);
            return(result);
        }
 public DomProcessingInstruction CreateProcessingInstruction(string target)
 {
     return(OwnerDocument.CreateProcessingInstruction(target));
 }
 // Creates a duplicate of this node.
 public override XmlNode CloneNode(bool deep)
 {
     Debug.Assert(OwnerDocument != null);
     return(OwnerDocument.CreateProcessingInstruction(_target, _data));
 }
예제 #4
0
 // Clone this node in either shallow or deep mode.
 public override XmlNode CloneNode(bool deep)
 {
     return(OwnerDocument.CreateProcessingInstruction(target, data));
 }