Inherits System::Xml::XmlWriter.
Public Types | |
using | Ptr = SharedPtr< XmlTextWriter > |
An alias for shared pointer to an instance of this class. More... | |
Public Types inherited from System::Xml::XmlWriter | |
using | Ptr = SharedPtr< XmlWriter > |
An alias for shared pointer to an instance of this class. More... | |
Public Types inherited from System::Object | |
typedef SmartPtr< Object > | ptr |
Alias for smart pointer type. More... | |
Public Member Functions | |
ASPOSECPP_SHARED_API SharedPtr< IO::Stream > | get_BaseStream () |
ASPOSECPP_SHARED_API bool | get_Namespaces () |
ASPOSECPP_SHARED_API void | set_Namespaces (bool value) |
ASPOSECPP_SHARED_API System::Xml::Formatting | get_Formatting () |
ASPOSECPP_SHARED_API void | set_Formatting (System::Xml::Formatting value) |
ASPOSECPP_SHARED_API int32_t | get_Indentation () |
ASPOSECPP_SHARED_API void | set_Indentation (int32_t value) |
ASPOSECPP_SHARED_API char16_t | get_IndentChar () |
ASPOSECPP_SHARED_API void | set_IndentChar (char16_t value) |
ASPOSECPP_SHARED_API char16_t | get_QuoteChar () |
ASPOSECPP_SHARED_API void | set_QuoteChar (char16_t value) |
ASPOSECPP_SHARED_API System::Xml::WriteState | get_WriteState () override |
ASPOSECPP_SHARED_API System::Xml::XmlSpace | get_XmlSpace () override |
ASPOSECPP_SHARED_API String | get_XmlLang () override |
ASPOSECPP_SHARED_API | XmlTextWriter (const SharedPtr< IO::Stream > &w, const SharedPtr< Text::Encoding > &encoding) |
ASPOSECPP_SHARED_API | XmlTextWriter (const String &filename, const SharedPtr< Text::Encoding > &encoding) |
ASPOSECPP_SHARED_API | XmlTextWriter (const SharedPtr< IO::TextWriter > &w) |
ASPOSECPP_SHARED_API void | WriteStartDocument () override |
ASPOSECPP_SHARED_API void | WriteStartDocument (bool standalone) override |
ASPOSECPP_SHARED_API void | WriteEndDocument () override |
ASPOSECPP_SHARED_API void | WriteDocType (const String &name, const String &pubid, const String &sysid, const String &subset) override |
ASPOSECPP_SHARED_API void | WriteStartElement (const String &prefix, const String &localName, const String &ns) override |
ASPOSECPP_SHARED_API void | WriteEndElement () override |
Closes one element and pops the corresponding namespace scope. More... | |
ASPOSECPP_SHARED_API void | WriteFullEndElement () override |
Closes one element and pops the corresponding namespace scope. More... | |
ASPOSECPP_SHARED_API void | WriteStartAttribute (const String &prefix, const String &localName, const String &ns) override |
ASPOSECPP_SHARED_API void | WriteEndAttribute () override |
Closes the previous XmlTextWriter::WriteStartAttribute call. More... | |
ASPOSECPP_SHARED_API void | WriteCData (String text) override |
ASPOSECPP_SHARED_API void | WriteComment (String text) override |
ASPOSECPP_SHARED_API void | WriteProcessingInstruction (String name, String text) override |
ASPOSECPP_SHARED_API void | WriteEntityRef (const String &name) override |
ASPOSECPP_SHARED_API void | WriteCharEntity (char16_t ch) override |
ASPOSECPP_SHARED_API void | WriteWhitespace (String ws) override |
ASPOSECPP_SHARED_API void | WriteString (const String &text) override |
ASPOSECPP_SHARED_API void | WriteSurrogateCharEntity (char16_t lowChar, char16_t highChar) override |
ASPOSECPP_SHARED_API void | WriteChars (ArrayPtr< char16_t > buffer, int32_t index, int32_t count) override |
ASPOSECPP_SHARED_API void | WriteRaw (ArrayPtr< char16_t > buffer, int32_t index, int32_t count) override |
ASPOSECPP_SHARED_API void | WriteRaw (const String &data) override |
ASPOSECPP_SHARED_API void | WriteBase64 (ArrayPtr< uint8_t > buffer, int32_t index, int32_t count) override |
ASPOSECPP_SHARED_API void | WriteBinHex (ArrayPtr< uint8_t > buffer, int32_t index, int32_t count) override |
ASPOSECPP_SHARED_API void | Close () override |
Closes this stream and the underlying stream. More... | |
ASPOSECPP_SHARED_API void | Flush () override |
Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream. More... | |
ASPOSECPP_SHARED_API void | WriteName (const String &name) override |
ASPOSECPP_SHARED_API void | WriteQualifiedName (const String &localName, const String &ns) override |
ASPOSECPP_SHARED_API String | LookupPrefix (String ns) override |
ASPOSECPP_SHARED_API void | WriteNmToken (const String &name) override |
Public Member Functions inherited from System::Xml::XmlWriter | |
virtual ASPOSECPP_SHARED_API SharedPtr< XmlWriterSettings > | get_Settings () |
ASPOSECPP_SHARED_API void | WriteStartElement (const String &localName, const String &ns) |
ASPOSECPP_SHARED_API void | WriteStartElement (const String &localName) |
ASPOSECPP_SHARED_API void | WriteAttributeString (const String &localName, const String &ns, const String &value) |
ASPOSECPP_SHARED_API void | WriteAttributeString (const String &localName, const String &value) |
ASPOSECPP_SHARED_API void | WriteAttributeString (const String &prefix, const String &localName, const String &ns, const String &value) |
ASPOSECPP_SHARED_API void | WriteStartAttribute (const String &localName, const String &ns) |
ASPOSECPP_SHARED_API void | WriteStartAttribute (const String &localName) |
virtual ASPOSECPP_SHARED_API void | WriteValue (SharedPtr< Object > value) |
virtual ASPOSECPP_SHARED_API void | WriteValue (const String &value) |
virtual ASPOSECPP_SHARED_API void | WriteValue (bool value) |
virtual ASPOSECPP_SHARED_API void | WriteValue (DateTime value) |
virtual ASPOSECPP_SHARED_API void | WriteValue (DateTimeOffset value) |
virtual ASPOSECPP_SHARED_API void | WriteValue (double value) |
virtual ASPOSECPP_SHARED_API void | WriteValue (float value) |
virtual ASPOSECPP_SHARED_API void | WriteValue (Decimal value) |
virtual ASPOSECPP_SHARED_API void | WriteValue (int32_t value) |
virtual ASPOSECPP_SHARED_API void | WriteValue (int64_t value) |
virtual ASPOSECPP_SHARED_API void | WriteAttributes (SharedPtr< XmlReader > reader, bool defattr) |
virtual ASPOSECPP_SHARED_API void | WriteNode (SharedPtr< XmlReader > reader, bool defattr) |
virtual ASPOSECPP_SHARED_API void | WriteNode (SharedPtr< XPath::XPathNavigator > navigator, bool defattr) |
ASPOSECPP_SHARED_API void | WriteElementString (const String &localName, const String &value) |
ASPOSECPP_SHARED_API void | WriteElementString (const String &localName, const String &ns, const String &value) |
ASPOSECPP_SHARED_API void | WriteElementString (const String &prefix, const String &localName, const String &ns, const String &value) |
ASPOSECPP_SHARED_API void | Dispose () override |
Releases all resources used by the current instance of the XmlWriter class. More... | |
Public Member Functions inherited from System::Object | |
ASPOSECPP_SHARED_API | Object () |
Creates object. Initializes all internal data structures. More... | |
virtual ASPOSECPP_SHARED_API | ~Object () |
Destroys object. Frees all internal data structures. More... | |
ASPOSECPP_SHARED_API | Object (Object const &x) |
Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object & | operator= (Object const &x) |
Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object * | SharedRefAdded () |
Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
int | SharedRefRemovedSafe () |
Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
int | RemovedSharedRefs (int count) |
Decreases shared reference count by specified value. More... | |
Detail::SmartPtrCounter * | WeakRefAdded () |
Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
void | WeakRefRemoved () |
Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
Detail::SmartPtrCounter * | GetCounter () |
Gets reference counter data structure associated with the object. More... | |
int | SharedCount () const |
Gets current value of shared reference counter. More... | |
ASPOSECPP_SHARED_API void | Lock () |
Implements C# lock() statement locking. Call directly or use LockContext sentry object. More... | |
ASPOSECPP_SHARED_API void | Unlock () |
Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More... | |
virtual ASPOSECPP_SHARED_API bool | Equals (ptr obj) |
Compares objects using C# Object.Equals semantics. More... | |
virtual ASPOSECPP_SHARED_API int32_t | GetHashCode () const |
Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More... | |
virtual ASPOSECPP_SHARED_API String | ToString () const |
Analog of C# Object.ToString() method. Enables converting custom objects to string. More... | |
virtual ASPOSECPP_SHARED_API ptr | MemberwiseClone () const |
Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More... | |
virtual ASPOSECPP_SHARED_API const TypeInfo & | GetType () const |
Gets actual type of object. Analog of C# System.Object.GetType() call. More... | |
virtual ASPOSECPP_SHARED_API bool | Is (const TypeInfo &targetType) const |
Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More... | |
virtual ASPOSECPP_SHARED_API void | SetTemplateWeakPtr (uint32_t argument) |
Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More... | |
virtual ASPOSECPP_SHARED_API bool | FastCast (const Details::FastRttiBase &helper, void **out_ptr) const |
For internal purposes only. More... | |
template<> | |
bool | Equals (float const &objA, float const &objB) |
template<> | |
bool | Equals (double const &objA, double const &objB) |
template<> | |
bool | ReferenceEquals (String const &str, std::nullptr_t) |
template<> | |
bool | ReferenceEquals (String const &str1, String const &str2) |
Additional Inherited Members | |
Static Public Member Functions inherited from System::Xml::XmlWriter | |
static ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | Create (const String &outputFileName) |
static ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | Create (const String &outputFileName, SharedPtr< XmlWriterSettings > settings) |
static ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | Create (const SharedPtr< IO::Stream > &output) |
static ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | Create (const SharedPtr< IO::Stream > &output, SharedPtr< XmlWriterSettings > settings) |
static ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | Create (const SharedPtr< IO::TextWriter > &output) |
static ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | Create (const SharedPtr< IO::TextWriter > &output, SharedPtr< XmlWriterSettings > settings) |
static ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | Create (const SharedPtr< Text::StringBuilder > &output) |
static ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | Create (const SharedPtr< Text::StringBuilder > &output, SharedPtr< XmlWriterSettings > settings) |
static ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | Create (const SharedPtr< XmlWriter > &output) |
static ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | Create (const SharedPtr< XmlWriter > &output, SharedPtr< XmlWriterSettings > settings) |
Static Public Member Functions inherited from System::Object | |
static bool | ReferenceEquals (ptr const &objA, ptr const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, T const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, std::nullptr_t) |
Reference-compares value type object with nullptr. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares reference type objects in C# style. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares value type objects in C# style. More... | |
static const TypeInfo & | Type () |
Implements C# typeof(System.Object) construct. More... | |
Represents a writer that provides a fast, non-cached, forward-only way of generating streams or files containing XML data that conforms to the W3C Extensible Markup Language (XML) 1.0 and the Namespaces in XML recommendations.
An alias for shared pointer to an instance of this class.
ASPOSECPP_SHARED_API System::Xml::XmlTextWriter::XmlTextWriter | ( | const SharedPtr< IO::Stream > & | w, |
const SharedPtr< Text::Encoding > & | encoding | ||
) |
Creates an instance of the XmlTextWriter class using the specified stream and encoding.
w | The stream to which you want to write. |
encoding | The encoding to generate. If encoding is nullptr it writes out the stream as UTF-8 and omits the encoding attribute from the ProcessingInstruction . |
ArgumentException | The encoding is not supported or the stream cannot be written to. |
ArgumentNullException | w is nullptr . |
ASPOSECPP_SHARED_API System::Xml::XmlTextWriter::XmlTextWriter | ( | const String & | filename, |
const SharedPtr< Text::Encoding > & | encoding | ||
) |
Creates an instance of the XmlTextWriter class using the specified file.
filename | The filename to write to. If the file exists, it truncates it and overwrites it with the new content. |
encoding | The encoding to generate. If encoding is nullptr it writes the file out as UTF-8 and omits the encoding attribute from the ProcessingInstruction . |
ArgumentException | The encoding is not supported; the filename is empty, contains only white space, or contains one or more invalid characters. |
UnauthorizedAccessException | Access is denied. |
ArgumentNullException | The filename is nullptr . |
DirectoryNotFoundException | The directory to write to is not found. |
IOException | The filename includes an incorrect or invalid syntax for file name, directory name, or volume label syntax. |
SecurityException | The caller does not have the required permission. |
ASPOSECPP_SHARED_API System::Xml::XmlTextWriter::XmlTextWriter | ( | const SharedPtr< IO::TextWriter > & | w | ) |
Creates an instance of the XmlTextWriter class using the specified TextWriter.
w | The TextWriter to write to. It is assumed that the TextWriter is already set to the correct encoding. |
|
overridevirtual |
Closes this stream and the underlying stream.
Reimplemented from System::Xml::XmlWriter.
|
overridevirtual |
Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
Implements System::Xml::XmlWriter.
ASPOSECPP_SHARED_API SharedPtr<IO::Stream> System::Xml::XmlTextWriter::get_BaseStream | ( | ) |
Returns the underlying stream object.
nullptr
if the XmlTextWriter was constructed using a TextWriter that does not inherit from the StreamWriter class. ASPOSECPP_SHARED_API System::Xml::Formatting System::Xml::XmlTextWriter::get_Formatting | ( | ) |
Indicates how the output is formatted.
ASPOSECPP_SHARED_API int32_t System::Xml::XmlTextWriter::get_Indentation | ( | ) |
Returns how many IndentChars to write for each level in the hierarchy when XmlTextWriter::set_Formatting is set to Formatting::Indented.
IndentChars
for each level. The default is 2. ASPOSECPP_SHARED_API char16_t System::Xml::XmlTextWriter::get_IndentChar | ( | ) |
Returns which character to use for indenting when XmlTextWriter::set_Formatting is set to Formatting::Indented.
ASPOSECPP_SHARED_API bool System::Xml::XmlTextWriter::get_Namespaces | ( | ) |
Returns a value indicating whether to do namespace support.
true
to support namespaces; otherwise, false
. The default is true
. ASPOSECPP_SHARED_API char16_t System::Xml::XmlTextWriter::get_QuoteChar | ( | ) |
Returns which character to use to quote attribute values.
'
or a double quote "
. The default is a double quote.
|
overridevirtual |
Returns the state of the writer.
Implements System::Xml::XmlWriter.
|
overridevirtual |
Returns the current xml:lang
scope.
xml:lang
or nullptr
if there is no xml:lang
in the current scope. Reimplemented from System::Xml::XmlWriter.
|
overridevirtual |
Returns an XmlSpace representing the current xml:space
scope.
xml:space
scope.Value | Meaning |
---|---|
None | This is the default if no xml:space scope exists. |
Default | The current scope is xml:space="default" . |
Preserve | The current scope is xml:space="preserve" . |
Reimplemented from System::Xml::XmlWriter.
Returns the closest prefix defined in the current namespace scope for the namespace URI.
ns | Namespace URI whose prefix you want to find. |
nullptr
if no matching namespace URI is found in the current scope. ArgumentException | ns is either nullptr or String::Empty. |
Implements System::Xml::XmlWriter.
ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::set_Formatting | ( | System::Xml::Formatting | value | ) |
Indicates how the output is formatted.
value | The value to set. |
ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::set_Indentation | ( | int32_t | value | ) |
Sets how many IndentChars to write for each level in the hierarchy when XmlTextWriter::set_Formatting is set to Formatting::Indented.
value | The value to set. |
ArgumentException | Setting value to a negative value. |
ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::set_IndentChar | ( | char16_t | value | ) |
Sets which character to use for indenting when XmlTextWriter::set_Formatting is set to Formatting::Indented.
value | The value to set. |
ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::set_Namespaces | ( | bool | value | ) |
Sets a value indicating whether to do namespace support.
value | The value to set. |
InvalidOperationException | You can only change this value when in the WriteState::Start state. |
ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::set_QuoteChar | ( | char16_t | value | ) |
Sets which character to use to quote attribute values.
value | The value to set. |
ArgumentException | Setting this value to something other than either a single or double quote. |
|
overridevirtual |
Encodes the specified binary bytes as base64 and writes out the resulting text.
buffer | Byte array to encode. |
index | The position within the buffer indicating the start of the bytes to write. |
count | The number of bytes to write. |
ArgumentNullException | buffer is nullptr . |
ArgumentException | The buffer length minus index is less than count . |
ArgumentOutOfRangeException | index or count is less than zero. |
InvalidOperationException | The XmlTextWriter::get_WriteState value is WriteState::Closed. |
Implements System::Xml::XmlWriter.
|
overridevirtual |
Encodes the specified binary bytes as binhex and writes out the resulting text.
buffer | Byte array to encode. |
index | The position in the buffer indicating the start of the bytes to write. |
count | The number of bytes to write. |
ArgumentNullException | buffer is nullptr . |
ArgumentException | The buffer length minus index is less than count . |
ArgumentOutOfRangeException | index or count is less than zero. |
InvalidOperationException | The XmlTextWriter::get_WriteState value is WriteState::Closed. |
Reimplemented from System::Xml::XmlWriter.
|
overridevirtual |
Writes out a <![CDATA[...]]>
block containing the specified text.
text | Text to place inside the CDATA block. |
ArgumentException | The text would result in a non-well formed XML document. |
InvalidOperationException | The XmlTextWriter::get_WriteState value is WriteState::Closed. |
Implements System::Xml::XmlWriter.
|
overridevirtual |
Forces the generation of a character entity for the specified Unicode character value.
ch | Unicode character for which to generate a character entity. |
ArgumentException | The character is in the surrogate pair character range, 0xd800 - 0xdfff ; or the text would result in a non-well formed XML document. |
InvalidOperationException | The XmlTextWriter::get_WriteState value is WriteState::Closed. |
Implements System::Xml::XmlWriter.
|
overridevirtual |
Writes text one buffer at a time.
buffer | Character array containing the text to write. |
index | The position in the buffer indicating the start of the text to write. |
count | The number of characters to write. |
ArgumentNullException | buffer is nullptr . |
ArgumentOutOfRangeException | index or count is less than zero. The buffer length minus index is less than count ; the call results in surrogate pair characters being split or an invalid surrogate pair being written. |
InvalidOperationException | The XmlTextWriter::get_WriteState value is WriteState::Closed. |
Implements System::Xml::XmlWriter.
|
overridevirtual |
Writes out a comment containing the specified text.
text | Text to place inside the comment. |
ArgumentException | The text would result in a non-well formed XML document. |
InvalidOperationException | The XmlTextWriter::get_WriteState value is WriteState::Closed. |
Implements System::Xml::XmlWriter.
|
overridevirtual |
Writes the DOCTYPE declaration with the specified name and optional attributes.
name | The name of the DOCTYPE. This must be non-empty. |
pubid | If non-null it also writes PUBLIC "pubid" "sysid" where pubid and sysid are replaced with the value of the given arguments. |
sysid | If pubid is null and sysid is non-null it writes SYSTEM "sysid" where sysid is replaced with the value of this argument. |
subset | If non-null it writes [subset] where subset is replaced with the value of this argument. |
InvalidOperationException | This method was called outside the prolog (after the root element). |
ArgumentException | name is nullptr or String::Empty or the value for name would result in invalid XML. |
Implements System::Xml::XmlWriter.
|
overridevirtual |
Closes the previous XmlTextWriter::WriteStartAttribute call.
Implements System::Xml::XmlWriter.
|
overridevirtual |
Closes any open elements or attributes and puts the writer back in the Start state.
ArgumentException | The XML document is invalid. |
Implements System::Xml::XmlWriter.
|
overridevirtual |
Closes one element and pops the corresponding namespace scope.
Implements System::Xml::XmlWriter.
|
overridevirtual |
Writes out an entity reference as &name
;.
name | Name of the entity reference. |
ArgumentException | The text would result in a non-well formed XML document or name is either nullptr or String::Empty. |
Implements System::Xml::XmlWriter.
|
overridevirtual |
Closes one element and pops the corresponding namespace scope.
Implements System::Xml::XmlWriter.
|
overridevirtual |
Writes out the specified name, ensuring it is a valid name according to the W3C XML 1.0 recommendation.
name | Name to write. |
ArgumentException | name is not a valid XML name; or name is either nullptr or String::Empty. |
Reimplemented from System::Xml::XmlWriter.
|
overridevirtual |
Writes out the specified name, ensuring it is a valid NmToken
according to the W3C XML 1.0 recommendation.
name | Name to write. |
ArgumentException | name is not a valid NmToken ; or name is either nullptr or String::Empty. |
Reimplemented from System::Xml::XmlWriter.
|
overridevirtual |
Writes out a processing instruction with a space between the name and text as follows: <?name text?>
.
name | Name of the processing instruction. |
text | Text to include in the processing instruction. |
ArgumentException | The text would result in a non-well formed XML document. name is either nullptr or String::Empty. |
This method is being used to create an XML declaration after XmlTextWriter::WriteStartDocument has already been called.
Implements System::Xml::XmlWriter.
|
overridevirtual |
Writes out the namespace-qualified name. This method looks up the prefix that is in scope for the given namespace.
localName | The local name to write. |
ns | The namespace URI to associate with the name. |
ArgumentException | localName is either nullptr or String::Empty. localName is not a valid name according to the W3C Namespaces spec. |
Reimplemented from System::Xml::XmlWriter.
|
overridevirtual |
Writes raw markup manually from a character buffer.
buffer | Character array containing the text to write. |
index | The position within the buffer indicating the start of the text to write. |
count | The number of characters to write. |
ArgumentNullException | buffer is nullptr . |
ArgumentOutOfRangeException | index or count is less than zero. The buffer length minus index is less than count . |
Implements System::Xml::XmlWriter.
|
overridevirtual |
Writes raw markup manually from a string.
data | String containing the text to write. |
Implements System::Xml::XmlWriter.
|
overridevirtual |
Writes the start of an attribute.
prefix | Namespace prefix of the attribute. |
localName | LocalName of the attribute. |
ns | NamespaceURI of the attribute. |
ArgumentException | localName is either nullptr or String::Empty. |
Implements System::Xml::XmlWriter.
|
overridevirtual |
Writes the XML declaration with the version "1.0".
InvalidOperationException | This is not the first write method called after the constructor. |
Implements System::Xml::XmlWriter.
|
overridevirtual |
Writes the XML declaration with the version "1.0" and the standalone attribute.
standalone | If true , it writes "standalone=yes"; if false , it writes "standalone=no". |
InvalidOperationException | This is not the first write method called after the constructor. |
Implements System::Xml::XmlWriter.
|
overridevirtual |
Writes the specified start tag and associates it with the given namespace and prefix.
prefix | The namespace prefix of the element. |
localName | The local name of the element. |
ns | The namespace URI to associate with the element. If this namespace is already in scope and has an associated prefix then the writer automatically writes that prefix also. |
InvalidOperationException | The writer is closed. |
Implements System::Xml::XmlWriter.
|
overridevirtual |
Writes the given text content.
text | Text to write. |
ArgumentException | The text string contains an invalid surrogate pair. |
Implements System::Xml::XmlWriter.
|
overridevirtual |
Generates and writes the surrogate character entity for the surrogate character pair.
lowChar | The low surrogate. This must be a value between 0xDC00 and 0xDFFF . |
highChar | The high surrogate. This must be a value between 0xD800 and 0xDBFF . |
Exception | An invalid surrogate character pair was passed. |
Implements System::Xml::XmlWriter.
|
overridevirtual |
Writes out the given white space.
ws | The string of white space characters. |
ArgumentException | The string contains non-white space characters. |
Implements System::Xml::XmlWriter.