Пример #1
0
        public void WriteHash(ISigner signer, DocPosition docPos, AncestralNamespaceContextManager anc)
        {
            UTF8Encoding utf8 = new UTF8Encoding(false);

            byte[] rgbData = utf8.GetBytes(" " + Name + "=\"");
            signer.BlockUpdate(rgbData, 0, rgbData.Length);
            rgbData = utf8.GetBytes(Utils.EscapeAttributeValue(Value));
            signer.BlockUpdate(rgbData, 0, rgbData.Length);
            rgbData = utf8.GetBytes("\"");
            signer.BlockUpdate(rgbData, 0, rgbData.Length);
        }
Пример #2
0
 public void Write(StringBuilder strBuilder, DocPosition docPos, AncestralNamespaceContextManager anc)
 {
     strBuilder.Append(" " + Name + "=\"");
     strBuilder.Append(Utils.EscapeAttributeValue(Value));
     strBuilder.Append("\"");
 }