public override Node Clone() { AttributeNode attributeNode = new AttributeNode(this.token); attributeNode.Value = this.Value; return(attributeNode); }
public override void WriteStartAttribute(string prefix, string localName, string ns) { // Save the name of the attribute if (localName != "xmlns" && prefix != "xmlns") { AttributeNode attributeNode = new AttributeNode(this.lexicon.TokenDictionary[ns][localName]); this.nodeStack.Push(attributeNode); } else { NamespaceNode namespaceNode = new NamespaceNode(prefix, localName, ns); this.nodeStack.Push(namespaceNode); } }