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)); }
// Clone this node in either shallow or deep mode. public override XmlNode CloneNode(bool deep) { return(OwnerDocument.CreateProcessingInstruction(target, data)); }