private void WriteAttributeValue(XmlWriter xtw)
{
string attrName = this.Name;
while (ReadAttributeValue())
{
if (this.NodeType == XmlNodeType.EntityReference)
{
xtw.WriteEntityRef(this.Name);
}
else
{
xtw.WriteString(this.Value);
}
}
this.MoveToAttribute(attrName);
}