Monobjc.Tools.Generator.Parsers.Sgml.Node.CopyAttributes C# (CSharp) Method

CopyAttributes() public method

public CopyAttributes ( Node n ) : void
n Node
return void
        public void CopyAttributes(Node n)
        {
            for (int i = 0, len = n.attributes.Count; i < len; i++)
            {
                Attribute a = (Attribute) n.attributes[i];
                Attribute na = this.AddAttribute(a.Name, a.Value, a.QuoteChar, false);
                na.DtdType = a.DtdType;
            }
        }