public override XmlNode CloneNode(bool deep) {
     //CloneNode is deep for attributes irrespective of parameter
     XmlUnspecifiedAttribute attr = new XmlUnspecifiedAttribute( Prefix, LocalName, NamespaceURI, OwnerDocument );
     attr.CopyChildren( this, true );
     attr.fSpecified = true; //When clone, should return the specifed attribute as default
     return attr;
 }
Exemple #2
0
        public override XmlNode CloneNode(bool deep)
        {
            //CloneNode is deep for attributes irrespective of parameter
            XmlUnspecifiedAttribute attr = new XmlUnspecifiedAttribute(Prefix, LocalName, NamespaceURI, OwnerDocument);

            attr.CopyChildren(this, true);
            attr.fSpecified = true; //When clone, should return the specifed attribute as default
            return(attr);
        }
Exemple #3
0
        public override XmlNode CloneNode(bool deep)
        {
            XmlDocument             ownerDocument = this.OwnerDocument;
            XmlUnspecifiedAttribute attribute     = (XmlUnspecifiedAttribute)ownerDocument.CreateDefaultAttribute(this.Prefix, this.LocalName, this.NamespaceURI);

            attribute.CopyChildren(ownerDocument, this, true);
            attribute.fSpecified = true;
            return(attribute);
        }