Table of Contents

Class XMLEncodedStringWriter

Namespace
Amazon.Runtime.Internal.Util
Assembly
AWSSDK.Core.dll

Overridden StringWriter that escapes additional characters in XML requests for consistency across AWS SDKs. There isn't an XmlWriterSettings.NewLineHandling value which matches the desired encoding, so this replaces the characters that NewLineHandling.Entitize doesn't encode

public class XMLEncodedStringWriter : StringWriter, IDisposable, IAsyncDisposable
Inheritance
XMLEncodedStringWriter
Implements
Inherited Members

Constructors

XMLEncodedStringWriter(IFormatProvider)

public XMLEncodedStringWriter(IFormatProvider formatProvider)

Parameters

formatProvider IFormatProvider

Methods

Write(char[], int, int)

Writes a range of a character array to the underlying string buffer and encodes additional characters for AWS XML requests

public override void Write(char[] buffer, int index, int count)

Parameters

buffer char[]

Characters to write to underlying string buffer

index int

Position in buffer to start writing from

count int

Number of characters to write