std::wstringbecause of it's dependecies to POSIX-style locales. Because of this XMLminus does not have
std::wstringsupport included unless explicitly enabled with
HAVE_WSTRINGmacro at compile time and whenever including xmlminus.h
If you want to use XMLminus with
std::wstring, you must enable the
HAVE_WSTRING macro either with compiler arguments, a header file such as config.h or manually before including xmlminus.h.
If you are building XMLminus using the standard installation procedure, the configure script enables/disables the
HAVE_WSTRING macro if std::wstring is present in your system.
NORMALelement type represents a regular tag and it's contents. A
NORMALelement may contain attributes, children and text. A
NORMALelement's value is the name of the tag.
'?') is regarded as a
DECLARATIONby XMLminus. A declaration's value is it's tag name and a declaration can have attributes. All declaration tags must end with a question mark. A declaration can not have any children or text.
'!') are regarded as a
COMMENT. Any text inside a comment tag is stored into the element's value. A comment can not have any children, text or attributes.
TERMINATORelement type is used internally to mark end tags. The
TERMINATORelements are removed in the parsing process. However, if parsing of an invidual element fails, (and all exceptions are caught) there may be extra
TERMINATORelements left in the element hierarchy. If you encounter any
TERMINATORelements, you should assume that the parsing process has failed.
<element> Some text <childelement attribute="value"> Text inside the child element </childelement> Some more text </element>
is interpreted by XMLminus as:
<element> <childelement attribute="value"> Text inside the child element </childelement> Some text Some more text </element>
'!') as comments. All text inside the comment tag are stored in the element's value.
<!-- An XML comment --> <! XMLminus treats this as a comment, although it's not a real XML comment > <!-- a comment can contain any <tags>inside</tags> it --> <!-- a comment can have other <! comments > inside -->