TiXmlDeclaration
-
class TiXmlDeclaration
Bases:
TiXmlNode
In correct XML the declaration is the first entry in the file.
<?xml version="1.0" standalone="yes"?>
TinyXml will happily read or write files without a declaration, however. There are 3 possible attributes to the declaration: version, encoding, and standalone.
Note: In this version of the code, the attributes are handled as special cases, not generic attributes, simply because there can only be at most 3 and they are always the same.
Inheritance diagram
-
char const *Encoding(void) const
/// Encoding. Will return an empty string if none was found.
-
virtual void Print(FILE *cfile, int depth, std::string *str) const
Print this declaration to a FILE stream.
depth/
-
char const *Standalone(void) const
/// Is this a standalone document?
-
char const *Version(void) const
/// Version. Will return an empty string if none was found.
-
TiXmlDeclaration(void)
-
TiXmlDeclaration(std::string const &_version, std::string const &_encoding, std::string const &_standalone)
-
TiXmlDeclaration(char const *_version, char const *_encoding, char const *_standalone)
-
TiXmlDeclaration(TiXmlDeclaration const ©)
/// Construct an empty declaration.
/// Constructor.
/// Construct.
-
char const *Encoding(void) const