Class Utf8XmlWriter
Overrides the default XmlWriter, to ensure that the Xml is Utf8 and with whitespaces, as the MapGuide server requires Utf8
Inheritance
System.Object
System.Xml.XmlWriter
System.Xml.XmlTextWriter
Utf8XmlWriter
Implements
System.IDisposable
Inherited Members
System.Xml.XmlWriter.Close()
System.Xml.XmlWriter.Create(System.IO.Stream)
System.Xml.XmlWriter.Create(System.IO.Stream, System.Xml.XmlWriterSettings)
System.Xml.XmlWriter.Create(System.IO.TextWriter)
System.Xml.XmlWriter.Create(System.IO.TextWriter, System.Xml.XmlWriterSettings)
System.Xml.XmlWriter.Create(System.String)
System.Xml.XmlWriter.Create(System.String, System.Xml.XmlWriterSettings)
System.Xml.XmlWriter.Create(System.Text.StringBuilder)
System.Xml.XmlWriter.Create(System.Text.StringBuilder, System.Xml.XmlWriterSettings)
System.Xml.XmlWriter.Create(System.Xml.XmlWriter)
System.Xml.XmlWriter.Create(System.Xml.XmlWriter, System.Xml.XmlWriterSettings)
System.Xml.XmlWriter.Dispose()
System.Xml.XmlWriter.Dispose(System.Boolean)
System.Xml.XmlWriter.Flush()
System.Xml.XmlWriter.FlushAsync()
System.Xml.XmlWriter.LookupPrefix(System.String)
System.Xml.XmlWriter.WriteAttributes(System.Xml.XmlReader, System.Boolean)
System.Xml.XmlWriter.WriteAttributesAsync(System.Xml.XmlReader, System.Boolean)
System.Xml.XmlWriter.WriteAttributeString(System.String, System.String)
System.Xml.XmlWriter.WriteAttributeString(System.String, System.String, System.String)
System.Xml.XmlWriter.WriteAttributeString(System.String, System.String, System.String, System.String)
System.Xml.XmlWriter.WriteAttributeStringAsync(System.String, System.String, System.String, System.String)
System.Xml.XmlWriter.WriteBase64(System.Byte[], System.Int32, System.Int32)
System.Xml.XmlWriter.WriteBase64Async(System.Byte[], System.Int32, System.Int32)
System.Xml.XmlWriter.WriteBinHex(System.Byte[], System.Int32, System.Int32)
System.Xml.XmlWriter.WriteBinHexAsync(System.Byte[], System.Int32, System.Int32)
System.Xml.XmlWriter.WriteCData(System.String)
System.Xml.XmlWriter.WriteCDataAsync(System.String)
System.Xml.XmlWriter.WriteCharEntity(System.Char)
System.Xml.XmlWriter.WriteCharEntityAsync(System.Char)
System.Xml.XmlWriter.WriteChars(System.Char[], System.Int32, System.Int32)
System.Xml.XmlWriter.WriteCharsAsync(System.Char[], System.Int32, System.Int32)
System.Xml.XmlWriter.WriteComment(System.String)
System.Xml.XmlWriter.WriteCommentAsync(System.String)
System.Xml.XmlWriter.WriteDocType(System.String, System.String, System.String, System.String)
System.Xml.XmlWriter.WriteDocTypeAsync(System.String, System.String, System.String, System.String)
System.Xml.XmlWriter.WriteElementString(System.String, System.String)
System.Xml.XmlWriter.WriteElementString(System.String, System.String, System.String)
System.Xml.XmlWriter.WriteElementString(System.String, System.String, System.String, System.String)
System.Xml.XmlWriter.WriteElementStringAsync(System.String, System.String, System.String, System.String)
System.Xml.XmlWriter.WriteEndAttribute()
System.Xml.XmlWriter.WriteEndAttributeAsync()
System.Xml.XmlWriter.WriteEndDocument()
System.Xml.XmlWriter.WriteEndDocumentAsync()
System.Xml.XmlWriter.WriteEndElement()
System.Xml.XmlWriter.WriteEndElementAsync()
System.Xml.XmlWriter.WriteEntityRef(System.String)
System.Xml.XmlWriter.WriteEntityRefAsync(System.String)
System.Xml.XmlWriter.WriteFullEndElement()
System.Xml.XmlWriter.WriteFullEndElementAsync()
System.Xml.XmlWriter.WriteName(System.String)
System.Xml.XmlWriter.WriteNameAsync(System.String)
System.Xml.XmlWriter.WriteNmToken(System.String)
System.Xml.XmlWriter.WriteNmTokenAsync(System.String)
System.Xml.XmlWriter.WriteNode(System.Xml.XmlReader, System.Boolean)
System.Xml.XmlWriter.WriteNode(System.Xml.XPath.XPathNavigator, System.Boolean)
System.Xml.XmlWriter.WriteNodeAsync(System.Xml.XmlReader, System.Boolean)
System.Xml.XmlWriter.WriteNodeAsync(System.Xml.XPath.XPathNavigator, System.Boolean)
System.Xml.XmlWriter.WriteProcessingInstruction(System.String, System.String)
System.Xml.XmlWriter.WriteProcessingInstructionAsync(System.String, System.String)
System.Xml.XmlWriter.WriteQualifiedName(System.String, System.String)
System.Xml.XmlWriter.WriteQualifiedNameAsync(System.String, System.String)
System.Xml.XmlWriter.WriteRaw(System.Char[], System.Int32, System.Int32)
System.Xml.XmlWriter.WriteRaw(System.String)
System.Xml.XmlWriter.WriteRawAsync(System.Char[], System.Int32, System.Int32)
System.Xml.XmlWriter.WriteRawAsync(System.String)
System.Xml.XmlWriter.WriteStartAttribute(System.String)
System.Xml.XmlWriter.WriteStartAttribute(System.String, System.String)
System.Xml.XmlWriter.WriteStartAttribute(System.String, System.String, System.String)
System.Xml.XmlWriter.WriteStartAttributeAsync(System.String, System.String, System.String)
System.Xml.XmlWriter.WriteStartDocumentAsync()
System.Xml.XmlWriter.WriteStartDocumentAsync(System.Boolean)
System.Xml.XmlWriter.WriteStartElement(System.String)
System.Xml.XmlWriter.WriteStartElement(System.String, System.String)
System.Xml.XmlWriter.WriteStartElement(System.String, System.String, System.String)
System.Xml.XmlWriter.WriteStartElementAsync(System.String, System.String, System.String)
System.Xml.XmlWriter.WriteString(System.String)
System.Xml.XmlWriter.WriteStringAsync(System.String)
System.Xml.XmlWriter.WriteSurrogateCharEntity(System.Char, System.Char)
System.Xml.XmlWriter.WriteSurrogateCharEntityAsync(System.Char, System.Char)
System.Xml.XmlWriter.WriteValue(System.Boolean)
System.Xml.XmlWriter.WriteValue(System.DateTime)
System.Xml.XmlWriter.WriteValue(System.DateTimeOffset)
System.Xml.XmlWriter.WriteValue(System.Decimal)
System.Xml.XmlWriter.WriteValue(System.Double)
System.Xml.XmlWriter.WriteValue(System.Int32)
System.Xml.XmlWriter.WriteValue(System.Int64)
System.Xml.XmlWriter.WriteValue(System.Object)
System.Xml.XmlWriter.WriteValue(System.Single)
System.Xml.XmlWriter.WriteValue(System.String)
System.Xml.XmlWriter.WriteWhitespace(System.String)
System.Xml.XmlWriter.WriteWhitespaceAsync(System.String)
System.Xml.XmlWriter.Settings
System.Xml.XmlWriter.WriteState
System.Xml.XmlWriter.XmlLang
System.Xml.XmlWriter.XmlSpace
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OSGeo.MapGuide.ObjectModels.IO
Assembly: OSGeo.MapGuide.ObjectModels.dll
Syntax
public class Utf8XmlWriter : XmlTextWriter, IDisposable
Constructors
| Improve this Doc View SourceUtf8XmlWriter(Stream)
Initializes a new instance of the Utf8XmlWriter class.
Declaration
public Utf8XmlWriter(Stream s)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | s | The s. |
Utf8XmlWriter(TextWriter)
Initializes a new instance of the Utf8XmlWriter class.
Declaration
public Utf8XmlWriter(TextWriter w)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextWriter | w | The TextWriter to write to. It is assumed that the TextWriter is already set to the correct encoding. |
Methods
| Improve this Doc View SourceWriteStartDocument()
Writes the XML declaration with the version "1.0".
Declaration
public override void WriteStartDocument()
Overrides
System.Xml.XmlTextWriter.WriteStartDocument()
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | This is not the first write method called after the constructor. |
WriteStartDocument(Boolean)
Writes the XML declaration with the version "1.0" and the standalone attribute.
Declaration
public override void WriteStartDocument(bool standalone)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | standalone | If true, it writes "standalone=yes"; if false, it writes "standalone=no". |
Overrides
System.Xml.XmlTextWriter.WriteStartDocument(System.Boolean)
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | This is not the first write method called after the constructor. |
Implements
System.IDisposable