System::Xml::XmlTextWriter Class Reference

Inherits System::Xml::XmlWriter.

Public Types

typedef SharedPtr< XmlTextWriterPtr
 An alias for shared pointer to an instance of this class. More...
 
- Public Types inherited from System::Xml::XmlWriter
typedef SharedPtr< XmlWriterPtr
 An alias for shared pointer to an instance of this class. More...
 
- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
typedef System::Details::SharedMembersType shared_members_type
 structure to keep list of shared pointers contained in object. More...
 

Public Member Functions

ASPOSECPP_SHARED_API XmlTextWriter (const String &outputFileName, const SharedPtr< System::Text::Encoding > &encoding=SharedPtr< System::Text::Encoding >())
 
ASPOSECPP_SHARED_API XmlTextWriter (const SharedPtr< System::IO::Stream > &stream, const SharedPtr< System::Text::Encoding > &encoding=SharedPtr< System::Text::Encoding >())
 
ASPOSECPP_SHARED_API XmlTextWriter (const SharedPtr< System::IO::TextWriter > &text_writer)
 
ASPOSECPP_SHARED_API XmlTextWriter (const SharedPtr< System::Text::StringBuilder > &string_builder)
 
ASPOSECPP_SHARED_API XmlTextWriter (xmlBuffer *buf)
 
ASPOSECPP_SHARED_API XmlTextWriter (xmlOutputBuffer *buf)
 
virtual ASPOSECPP_SHARED_API ~XmlTextWriter ()
 Destructor. More...
 
ASPOSECPP_SHARED_API WriteState get_WriteState () override
 Returns a value indicating the state of the current writer. More...
 
ASPOSECPP_SHARED_API void Close () override
 Closes the write stream. More...
 
ASPOSECPP_SHARED_API void Flush () override
 Flushes the content of the buffers to the underlying stream and also flushes the underlying stream. More...
 
ASPOSECPP_SHARED_API void WriteStartDocument () override
 Writes an XML declaration with version "1.0". More...
 
ASPOSECPP_SHARED_API void WriteStartDocument (bool standalone) override
 
ASPOSECPP_SHARED_API void WriteStartElement (String localName) override
 
ASPOSECPP_SHARED_API void WriteStartElement (String localName, String ns) override
 
ASPOSECPP_SHARED_API void WriteStartElement (String prefix, String localName, String ns) override
 
ASPOSECPP_SHARED_API void WriteStartAttribute (String localName) override
 
ASPOSECPP_SHARED_API void WriteAttributeString (String localName, String value) override
 
ASPOSECPP_SHARED_API void WriteAttributeString (String localName, String ns, String value) override
 
ASPOSECPP_SHARED_API void WriteAttributeString (String prefix, String localName, String ns, String value) override
 
ASPOSECPP_SHARED_API void WriteAttributes (SharedPtr< XmlReader > reader, bool defattr) override
 
ASPOSECPP_SHARED_API void WriteElementString (String localName, String value) override
 
ASPOSECPP_SHARED_API void WriteElementString (String localName, String ns, String value) override
 
ASPOSECPP_SHARED_API void WriteElementString (String prefix, String localName, String ns, String value) override
 
ASPOSECPP_SHARED_API void WriteDocType (String name, String pubid, String sysid, String subset) override
 
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 (String name) override
 
ASPOSECPP_SHARED_API void WriteString (String text) override
 
ASPOSECPP_SHARED_API void WriteWhitespace (String ws) override
 
ASPOSECPP_SHARED_API void WriteRaw (String text) override
 
ASPOSECPP_SHARED_API void WriteRaw (ArrayPtr< char_t > buffer, int index, int count) override
 
ASPOSECPP_SHARED_API void WriteBase64 (ArrayPtr< uint8_t > buffer, int index, int count) override
 
ASPOSECPP_SHARED_API void WriteBinHex (ArrayPtr< uint8_t > buffer, int index, int count) override
 
ASPOSECPP_SHARED_API void WriteEndAttribute () override
 Closes the previous WriteStartAttribute(System::String) call. More...
 
ASPOSECPP_SHARED_API void WriteEndElement () override
 
ASPOSECPP_SHARED_API void WriteFullEndElement () override
 Closes an element and pops the corresponding namespace scope. The full form of closing tag is used. More...
 
ASPOSECPP_SHARED_API void WriteEndDocument () override
 Closes all open elements and attributes and puts the writer in the Start state. More...
 
ASPOSECPP_SHARED_API String LookupPrefix (String ns) override
 
ASPOSECPP_SHARED_API Formatting get_Formatting () const
 Returns a value that indicates how the output is formatted. More...
 
ASPOSECPP_SHARED_API void set_Formatting (Formatting value)
 
ASPOSECPP_SHARED_API void set_Namespaces (bool value)
 
ASPOSECPP_SHARED_API void set_Indentation (int value)
 
ASPOSECPP_SHARED_API int get_Indentation () const
 
ASPOSECPP_SHARED_API void set_IndentChar (char_t value)
 
ASPOSECPP_SHARED_API char_t get_IndentChar () const
 Returns a character that should be used for indenting when Formatting is set to Formatting::Indented. More...
 
ASPOSECPP_SHARED_API void set_QuoteChar (char_t value)
 
ASPOSECPP_SHARED_API SharedPtr< System::IO::Streamget_BaseStream () const
 Returns the underlying stream object. More...
 
ASPOSECPP_SHARED_API xmlTextWriter * native () const
 Returns a pointer to the underlying libxml2 xmlTextWriter object. More...
 
- Public Member Functions inherited from System::IDisposable
virtual void Dispose ()
 Does nothing. 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...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 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 refernce 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 int GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API String ToString () ASPOSE_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 TypeInfoGetType () 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 (unsigned int argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. 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)
 

Protected Attributes

xmlTextWriter * m_writer
 The underlynig libxml2 XML text writer. More...
 
Formatting m_formatting
 Indicates how the output is formatted. More...
 
int m_indentation
 
char_t m_indent_char
 A character that should be used for indenting when Formatting is set to Formatting::Indented. More...
 
WriteState m_state
 Indicates the state of the current writer. More...
 
SharedPtr< XmlWriterSettingsm_settings
 The current XmlWriter object's settings. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from System::Xml::XmlWriter
static ASPOSECPP_SHARED_API XmlWriter::Ptr Create (const String &outputFileName)
 
static ASPOSECPP_SHARED_API XmlWriter::Ptr Create (const String &outputFileName, const SharedPtr< XmlWriterSettings > &settings)
 
static ASPOSECPP_SHARED_API XmlWriter::Ptr Create (const SharedPtr< System::IO::Stream > &stream, const SharedPtr< XmlWriterSettings > &settings=nullptr)
 
static ASPOSECPP_SHARED_API XmlWriter::Ptr Create (const SharedPtr< System::Text::StringBuilder > &builder, const SharedPtr< XmlWriterSettings > &settings)
 
static ASPOSECPP_SHARED_API XmlWriter::Ptr Create (const SharedPtr< System::IO::TextWriter > &text_writer)
 
static ASPOSECPP_SHARED_API XmlWriter::Ptr Create (const SharedPtr< System::IO::TextWriter > &text_writer, const 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 TypeInfoType ()
 Impleemnts C# typeof(System.Object) construct. More...
 
- Protected Member Functions inherited from System::Xml::XmlWriter
 XmlWriter ()
 Constructs a new instance of XmlWriter class. More...
 

Detailed Description

Represents a non-cached, forward-only writer way of generating streams or files containing XML data. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

Member Typedef Documentation

◆ Ptr

An alias for shared pointer to an instance of this class.

Constructor & Destructor Documentation

◆ XmlTextWriter() [1/6]

ASPOSECPP_SHARED_API System::Xml::XmlTextWriter::XmlTextWriter ( const String outputFileName,
const SharedPtr< System::Text::Encoding > &  encoding = SharedPtrSystem::Text::Encoding >() 
)

Constructs an instance of XmlWriter class and initializes it with the specified output file and encoding.

Parameters
outputFileNameA filesystem path specifying a file to which the writer will write
encodingThe encoding to use

◆ XmlTextWriter() [2/6]

ASPOSECPP_SHARED_API System::Xml::XmlTextWriter::XmlTextWriter ( const SharedPtr< System::IO::Stream > &  stream,
const SharedPtr< System::Text::Encoding > &  encoding = SharedPtrSystem::Text::Encoding >() 
)

Constructs an instance of XmlTextWriter class and initializes it with the specified stream.

Parameters
streamA stream to which the writer will write
encodingThe encoding to use

◆ XmlTextWriter() [3/6]

ASPOSECPP_SHARED_API System::Xml::XmlTextWriter::XmlTextWriter ( const SharedPtr< System::IO::TextWriter > &  text_writer)

Constructs an instance of XmlTextWriter class and initializes it with the specified TextWriter.

Parameters
text_writerA TextWriter to which the writer will write

◆ XmlTextWriter() [4/6]

ASPOSECPP_SHARED_API System::Xml::XmlTextWriter::XmlTextWriter ( const SharedPtr< System::Text::StringBuilder > &  string_builder)

Constructs an instance of XmlTextWriter class and initializes it with the specified StringBuilder.

Parameters
string_builderA StringBuilder to which the writer will write

◆ XmlTextWriter() [5/6]

ASPOSECPP_SHARED_API System::Xml::XmlTextWriter::XmlTextWriter ( xmlBuffer *  buf)

Constructs a new instance of XmlTextWriter and forces it to use the specified xmlBuffer object.

Parameters
bufAn xmlBuffer object to use

◆ XmlTextWriter() [6/6]

ASPOSECPP_SHARED_API System::Xml::XmlTextWriter::XmlTextWriter ( xmlOutputBuffer *  buf)

Constructs a new instance of XmlTextWriter and forces it to use the specified xmlOutputBuffer object.

Parameters
bufAn xmlOutputBuffer object to use

◆ ~XmlTextWriter()

virtual ASPOSECPP_SHARED_API System::Xml::XmlTextWriter::~XmlTextWriter ( )
virtual

Destructor.

Member Function Documentation

◆ Close()

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::Close ( )
overridevirtual

Closes the write stream.

Implements System::Xml::XmlWriter.

◆ Flush()

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::Flush ( )
overridevirtual

Flushes the content of the buffers to the underlying stream and also flushes the underlying stream.

Implements System::Xml::XmlWriter.

◆ get_BaseStream()

ASPOSECPP_SHARED_API SharedPtr<System::IO::Stream> System::Xml::XmlTextWriter::get_BaseStream ( ) const

Returns the underlying stream object.

◆ get_Formatting()

ASPOSECPP_SHARED_API Formatting System::Xml::XmlTextWriter::get_Formatting ( ) const

Returns a value that indicates how the output is formatted.

◆ get_Indentation()

ASPOSECPP_SHARED_API int System::Xml::XmlTextWriter::get_Indentation ( ) const

Returns an integer value that indicates how many IndentChars should be writen for each level in the hierarchy when Formatting is set to Formatting::Indented.

◆ get_IndentChar()

ASPOSECPP_SHARED_API char_t System::Xml::XmlTextWriter::get_IndentChar ( ) const

Returns a character that should be used for indenting when Formatting is set to Formatting::Indented.

◆ get_WriteState()

ASPOSECPP_SHARED_API WriteState System::Xml::XmlTextWriter::get_WriteState ( )
overridevirtual

Returns a value indicating the state of the current writer.

Implements System::Xml::XmlWriter.

◆ LookupPrefix()

ASPOSECPP_SHARED_API String System::Xml::XmlTextWriter::LookupPrefix ( String  ns)
overridevirtual

Gets the closest prefix defined in the current namespace scope for the specified namespace URI.

Parameters
nsThe namespace URI
Returns
The closest prefix defined in the current namespace scope for ns

Implements System::Xml::XmlWriter.

◆ native()

ASPOSECPP_SHARED_API xmlTextWriter* System::Xml::XmlTextWriter::native ( ) const

Returns a pointer to the underlying libxml2 xmlTextWriter object.

◆ set_Formatting()

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::set_Formatting ( Formatting  value)

Sets a value that indicates how the output is formatted.

Parameters
valueThe value to set

◆ set_Indentation()

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::set_Indentation ( int  value)

Sets an integer value that indicates how many IndentChars should be writen for each level in the hierarchy when Formatting is set to Formatting::Indented.

Parameters
valueThe value to set

◆ set_IndentChar()

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::set_IndentChar ( char_t  value)

Sets a character that should be used for indenting when Formatting is set to Formatting::Indented.

Parameters
valueThe value to set

◆ set_Namespaces()

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::set_Namespaces ( bool  value)

Sets a value that indicates whether to do namespace support.

Parameters
valueThe value to set

◆ set_QuoteChar()

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::set_QuoteChar ( char_t  value)

Sets a character that should be used to quote attribute values.

Parameters
valueThe value to set.

◆ WriteAttributes()

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteAttributes ( SharedPtr< XmlReader reader,
bool  defattr 
)
overridevirtual

Writes out all the attributes found at the current position in the XmlReader.

Parameters
readerThe XmlReader from which to copy the attributes.
defattrtrue to copy the default attributes from the XmlReader; otherwise, false.

Implements System::Xml::XmlWriter.

◆ WriteAttributeString() [1/3]

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteAttributeString ( String  localName,
String  value 
)
overridevirtual

Writes out an attribute with the specified local name and value.

Parameters
localNameThe attribute's local name
valueThe attribute's value

Implements System::Xml::XmlWriter.

◆ WriteAttributeString() [2/3]

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteAttributeString ( String  localName,
String  ns,
String  value 
)
overridevirtual

Writes out an attribute with the specified local name and value and associates it with the specified namespace.

Parameters
localNameThe attribute's local name
nsThe namespace to associate the attribute with
valueThe attribute's value

Implements System::Xml::XmlWriter.

◆ WriteAttributeString() [3/3]

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteAttributeString ( String  prefix,
String  localName,
String  ns,
String  value 
)
overridevirtual

Writes out an attribute with the specified prefix, local name and value and associates it with the specified namespace.

Parameters
prefixThe attribute's prefix
localNameThe attribute's local name
nsThe namespace to associate the attribute with
valueThe attribute's value

Implements System::Xml::XmlWriter.

◆ WriteBase64()

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteBase64 ( ArrayPtr< uint8_t >  buffer,
int  index,
int  count 
)
overridevirtual

Base64-encodes the specified range of bytes in the specified byte array and writes out the resulting text.

Parameters
bufferA byte array
indexA 0-based index of the element in the array at which the range to encode begins
countThe number of elements in the range

Implements System::Xml::XmlWriter.

◆ WriteBinHex()

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteBinHex ( ArrayPtr< uint8_t >  buffer,
int  index,
int  count 
)
overridevirtual

Encodes the specified range of bytes in the specifie array as BinHex and writes out the resulting text.

Parameters
bufferA byte array
indexA 0-based index of the element in the array at which the range to encode begins
countThe number of elements in the range

Implements System::Xml::XmlWriter.

◆ WriteCData()

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteCData ( String  text)
overridevirtual

Writes out a CData node.

Parameters
textThe content of the node

Implements System::Xml::XmlWriter.

◆ WriteComment()

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteComment ( String  text)
overridevirtual

Writes out a comment node.

Parameters
textThe content of the node

Implements System::Xml::XmlWriter.

◆ WriteDocType()

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteDocType ( String  name,
String  pubid,
String  sysid,
String  subset 
)
overridevirtual

Writes out a DOCTYPE declaration with the specified name and attributes.

Parameters
nameThe name of DOCTYPE declaration
pubidThe public identifier of DOCTYPE declaration
sysidThe system identifier of DOCTYPE declaration
subsetThe subset parameter of DOCTYPE declaration

Implements System::Xml::XmlWriter.

◆ WriteElementString() [1/3]

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteElementString ( String  localName,
String  value 
)
overridevirtual

Writes out an element with the specified local name and value.

Parameters
localNameThe element's local name
valueThe element's value

Implements System::Xml::XmlWriter.

◆ WriteElementString() [2/3]

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteElementString ( String  localName,
String  ns,
String  value 
)
overridevirtual

Writes out an element with the specified local name and value and associates it with the specified namespace.

Parameters
localNameThe element's local name
nsThe namespace to associate the element with
valueThe element's value

Implements System::Xml::XmlWriter.

◆ WriteElementString() [3/3]

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteElementString ( String  prefix,
String  localName,
String  ns,
String  value 
)
overridevirtual

Writes out an element with the specified prefix, local name and value and associates it with the specified namespace.

Parameters
prefixThe attribute's prefix
localNameThe element's local name
nsThe namespace to associate the element with
valueThe element's value

Implements System::Xml::XmlWriter.

◆ WriteEndAttribute()

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteEndAttribute ( )
overridevirtual

Closes the previous WriteStartAttribute(System::String) call.

Implements System::Xml::XmlWriter.

◆ WriteEndDocument()

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteEndDocument ( )
overridevirtual

Closes all open elements and attributes and puts the writer in the Start state.

Implements System::Xml::XmlWriter.

◆ WriteEndElement()

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteEndElement ( )
overridevirtual

Closes an element and pops the corresponding namespace scope. If the element is empty, the short form of the closing tag is used.

Implements System::Xml::XmlWriter.

◆ WriteEntityRef()

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteEntityRef ( String  name)
overridevirtual

Writes out an entity reference as {ampersand}name;.

Parameters
nameThe name of the entity reference.

Implements System::Xml::XmlWriter.

◆ WriteFullEndElement()

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteFullEndElement ( )
overridevirtual

Closes an element and pops the corresponding namespace scope. The full form of closing tag is used.

Implements System::Xml::XmlWriter.

◆ WriteProcessingInstruction()

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteProcessingInstruction ( String  name,
String  text 
)
overridevirtual

Writes out a processing instruction with the specified name and text.

Parameters
nameThe name of the processing instruction
textThe text to be added to the processing instruction

Implements System::Xml::XmlWriter.

◆ WriteRaw() [1/2]

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteRaw ( String  text)
overridevirtual

Writes the specified string content without escaping the special characters.

Parameters
textThe text to write

Implements System::Xml::XmlWriter.

◆ WriteRaw() [2/2]

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteRaw ( ArrayPtr< char_t >  buffer,
int  index,
int  count 
)
overridevirtual

Writes the specified range of characters without escaping the special characters.

Parameters
bufferThe character array
indexA 0-based index at which the range to write begins
countThe number of characters in the range

Implements System::Xml::XmlWriter.

◆ WriteStartAttribute()

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteStartAttribute ( String  localName)
overridevirtual

Writes the start of an attribute with the specified local name.

Parameters
localNameThe attribute's local name

Implements System::Xml::XmlWriter.

◆ WriteStartDocument() [1/2]

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteStartDocument ( )
overridevirtual

Writes an XML declaration with version "1.0".

Implements System::Xml::XmlWriter.

◆ WriteStartDocument() [2/2]

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteStartDocument ( bool  standalone)
overridevirtual

Writes an XML declaration with version "1.0" and the 'standalone' attribute with the specified value.

Parameters
standaloneThe value of the 'standalone' attribute in the XML declaration

Implements System::Xml::XmlWriter.

◆ WriteStartElement() [1/3]

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteStartElement ( String  localName)
overridevirtual

Writes out a start tag of an element with the specified local name.

Parameters
localNameThe element's local name

Implements System::Xml::XmlWriter.

◆ WriteStartElement() [2/3]

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteStartElement ( String  localName,
String  ns 
)
overridevirtual

Writes out a start tag of an element with the specified local name and associates it with the specified namespace.

Parameters
localNameThe element's local name
nsThe namespace to associate the element with

Implements System::Xml::XmlWriter.

◆ WriteStartElement() [3/3]

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteStartElement ( String  prefix,
String  localName,
String  ns 
)
overridevirtual

Writes out a start tag of an element with the specified local name and prefix and associates it with the specified namespace.

Parameters
prefixThe element's prefix
localNameThe element's local name
nsThe namespace to associate the element with

Implements System::Xml::XmlWriter.

◆ WriteString()

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteString ( String  text)
overridevirtual

Writes the specified text content.

Parameters
textThe text to write

Implements System::Xml::XmlWriter.

◆ WriteWhitespace()

ASPOSECPP_SHARED_API void System::Xml::XmlTextWriter::WriteWhitespace ( String  ws)
overridevirtual

Writes the specified white spaces.

Parameters
wsThe string with white space characters to write

Implements System::Xml::XmlWriter.

Member Data Documentation

◆ m_formatting

Formatting System::Xml::XmlTextWriter::m_formatting
protected

Indicates how the output is formatted.

◆ m_indent_char

char_t System::Xml::XmlTextWriter::m_indent_char
protected

A character that should be used for indenting when Formatting is set to Formatting::Indented.

◆ m_indentation

int System::Xml::XmlTextWriter::m_indentation
protected

Indicates how many IndentChars should be writen for each level in the hierarchy when Formatting is set to Formatting::Indented.

◆ m_settings

SharedPtr<XmlWriterSettings> System::Xml::XmlTextWriter::m_settings
protected

The current XmlWriter object's settings.

◆ m_state

WriteState System::Xml::XmlTextWriter::m_state
protected

Indicates the state of the current writer.

◆ m_writer

xmlTextWriter* System::Xml::XmlTextWriter::m_writer
protected

The underlynig libxml2 XML text writer.