XmlElement
The object representation of an XMLElement.
using AngleSharp.Html;
namespace AngleSharp.Dom.Xml
{
internal sealed class XmlElement : Element
{
internal string IdAttribute { get; set; }
public XmlElement(Document owner, string name, string prefix = null)
: base(owner, name, prefix, Namespaces.XmlUri, NodeFlags.None)
{
}
public override INode Clone(bool deep = true)
{
XmlElement xmlElement = new XmlElement(base.Owner, base.LocalName, base.Prefix);
Node.CopyProperties(this, xmlElement, deep);
Element.CopyAttributes(this, xmlElement);
xmlElement.IdAttribute = IdAttribute;
return xmlElement;
}
}
}