std::wstring
because of it's dependecies to POSIX-style locales. Because of this XMLminus does not have std::wstring
support included unless explicitly enabled with HAVE_WSTRING
macro 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.
NORMAL
element type represents a regular tag and it's contents. A NORMAL
element may contain attributes, children and text. A NORMAL
element's value is the name of the tag.'?'
) is regarded as a DECLARATION
by 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.TERMINATOR
element type is used internally to mark end tags. The TERMINATOR
elements are removed in the parsing process. However, if parsing of an invidual element fails, (and all exceptions are caught) there may be extra TERMINATOR
elements left in the element hierarchy. If you encounter any TERMINATOR
elements, 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 -->