#include <lsxml.h>
Inheritance diagram for lsxml::XmlWriter< _Ty >:
Public Member Functions | |
XmlWriter (int flags=XWF_DEFAULT) | |
ctor | |
XmlWriter (OutputStream< _Ty > *s, int flags=XRF_DEFAULT) | |
ctor | |
~XmlWriter () | |
dtor | |
void | WriteComment (const _Ty *comment) |
writes a xml comment | |
void | WriteStartTag (const _Ty *name, const XmlAttribute< _Ty > *attribs, bool close=false) |
writes an opening tag | |
void | WriteEndTag (const _Ty *name) |
writes a closing tag | |
void | WriteText (const _Ty *name, bool inlineText, bool cdata=false) |
writes character data | |
void | SetFlags (int flags) |
sets the writer flags | |
int | GetFlags () const |
returns the writer flags | |
XmlWriter (int flags=XWF_DEFAULT) | |
Constructor. | |
XmlWriter (OutputStream< _Ty > *s, int flags=XRF_DEFAULT) | |
Constructor. | |
~XmlWriter () | |
Destructor. | |
void | WriteComment (const _Ty *comment) |
Writes a xml comment node. | |
void | WriteStartTag (const _Ty *name, const XmlAttribute< _Ty > *attribs, bool close=false) |
Writes an opening element tag. | |
void | WriteEndTag (const _Ty *name) |
Writes a closing element tag. | |
void | WriteText (const _Ty *value, bool inlineText, bool cdata=false) |
Writes a text node. | |
void | SetFlags (int flags) |
Sets the writer flags. | |
int | GetFlags () const |
Returns the writer flags. | |
bool | OpenFile (const _Ty *filename) |
Opens the specified file for writing. |
lsxml::XmlWriter< _Ty >::XmlWriter | ( | int | flags = XWF_DEFAULT |
) | [inline] |
lsxml::XmlWriter< _Ty >::XmlWriter | ( | OutputStream< _Ty > * | s, | |
int | flags = XRF_DEFAULT | |||
) | [inline] |
void lsxml::XmlWriter< _Ty >::WriteComment | ( | const _Ty * | comment | ) |
Writes a xml comment node.
comment | comment value |
void lsxml::XmlWriter< _Ty >::WriteStartTag | ( | const _Ty * | name, | |
const XmlAttribute< _Ty > * | attribs, | |||
bool | close = false | |||
) |
Writes an opening element tag.
name | element name | |
attribs | attribute list | |
close | if true, produces an empty tag |
void lsxml::XmlWriter< _Ty >::WriteEndTag | ( | const _Ty * | name | ) |
Writes a closing element tag.
name | the tag's name. Can be NULL if the XWF_REMEMBER_TAG_NAMES flag was specified. |
void lsxml::XmlWriter< _Ty >::WriteText | ( | const _Ty * | value, | |
bool | inlineText, | |||
bool | cdata = false | |||
) |
Writes a text node.
value | the node's value | |
inlineText | controls indentation | |
cdata | specifies if the text should be a CDATA section |
bool lsxml::XmlWriter< _Ty >::OpenFile | ( | const _Ty * | filename | ) | [inline] |
Opens the specified file for writing.
filename | name of the file to open |