Ejemplo n.º 1
0
        public override INode Clone(Boolean deep = true)
        {
            var node = new ProcessingInstruction(Owner, Target);

            CloneNode(node, deep);
            return(node);
        }
Ejemplo n.º 2
0
        internal override Node Clone(Document owner, Boolean deep)
        {
            var node = new ProcessingInstruction(owner, Target);

            CloneNode(node, owner, deep);
            return(node);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Creates a processing instruction by splitting data into the name/target and data.
        /// </summary>
        internal static ProcessingInstruction Create(Document owner, String data)
        {
            int nameLength = data.IndexOf(' ');
            var pi         = new ProcessingInstruction(owner, nameLength <= 0 ? data : data.Substring(0, nameLength));

            if (nameLength > 0)
            {
                pi.Data = data.Substring(nameLength);
            }
            return(pi);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Returns a duplicate of the node on which this method was called.
 /// </summary>
 /// <param name="deep">
 /// Optional value: true if the children of the node should also be
 /// cloned, or false to clone only the specified node.
 /// </param>
 /// <returns>The duplicate node.</returns>
 public override INode Clone(Boolean deep = true)
 {
     var node = new ProcessingInstruction(Owner, Target);
     CopyProperties(this, node, deep);
     return node;
 }
Ejemplo n.º 5
0
 public override INode Clone(Boolean deep = true)
 {
     var node = new ProcessingInstruction(Owner, Target);
     CloneNode(node, deep);
     return node;
 }