public void Write( StringBuilder strBuilder, DocPosition docPos, AncestralNamespaceContextManager anc) { if (!this.IsInNodeSet) { return; } strBuilder.Append(Exml.EscapeTextData(this.Data)); }
public void WriteHash( HashAlgorithm hash, DocPosition docPos, AncestralNamespaceContextManager anc) { if (!this.IsInNodeSet) { return; } byte[] bytes = new UTF8Encoding(false).GetBytes(Exml.EscapeTextData(this.Data)); hash.TransformBlock(bytes, 0, bytes.Length, bytes, 0); }