public void WriteHash(IHash hash, DocPosition docPos, AncestralNamespaceContextManager anc) { UTF8Encoding utf8 = new UTF8Encoding(false); byte[] rgbData = utf8.GetBytes(" " + Name + "=\""); hash.BlockUpdate(rgbData, 0, rgbData.Length); rgbData = utf8.GetBytes(ParserUtils.EscapeAttributeValue(Value)); hash.BlockUpdate(rgbData, 0, rgbData.Length); rgbData = utf8.GetBytes("\""); hash.BlockUpdate(rgbData, 0, rgbData.Length); }
public void Write(StringBuilder strBuilder, DocPosition docPos, AncestralNamespaceContextManager anc) { strBuilder.Append(" " + Name + "=\""); strBuilder.Append(ParserUtils.EscapeAttributeValue(Value)); strBuilder.Append("\""); }