\hypertarget{class_ti_xml_document}{\section{Ti\-Xml\-Document Class Reference}
\label{class_ti_xml_document}\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}}
}


Tiny\-X\-M\-L class. See \href{http://www.grinninglizard.com/tinyxml}{\tt http\-://www.\-grinninglizard.\-com/tinyxml}.  




{\ttfamily \#include $<$tinyxml.\-h$>$}

Inheritance diagram for Ti\-Xml\-Document\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{class_ti_xml_document}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_ti_xml_document_a9f5e84335708fde98400230f9f12659c}{Ti\-Xml\-Document} ()
\begin{DoxyCompactList}\small\item\em Create an empty document, that has no name. \end{DoxyCompactList}\item 
\hyperlink{class_ti_xml_document_ae4508b452d0c3061db085f3db27b8396}{Ti\-Xml\-Document} (const char $\ast$document\-Name)
\begin{DoxyCompactList}\small\item\em Create a document with a name. The name of the document is also the filename of the xml. \end{DoxyCompactList}\item 
\hyperlink{class_ti_xml_document_a2c6e58fb99bfa76cc613f16840022225}{Ti\-Xml\-Document} (const std\-::string \&document\-Name)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\hyperlink{class_ti_xml_document_a323a7486e7da6099cdc19a5ff7e74b07}{Ti\-Xml\-Document} (const \hyperlink{class_ti_xml_document}{Ti\-Xml\-Document} \&copy)
\item 
void \hyperlink{class_ti_xml_document_aafbfacc3414008f619b1345775ef12a4}{operator=} (const \hyperlink{class_ti_xml_document}{Ti\-Xml\-Document} \&copy)
\item 
virtual \hyperlink{class_ti_xml_document_a1b8a035c2c2aab38e4387246a0b712c5}{$\sim$\-Ti\-Xml\-Document} ()
\item 
bool \hyperlink{class_ti_xml_document_a4c852a889c02cf251117fd1d9fe1845f}{Load\-File} (\hyperlink{tinyxml_8h_a88d51847a13ee0f4b4d320d03d2c4d96}{Ti\-Xml\-Encoding} encoding=\hyperlink{tinyxml_8h_ad5b8b092878e9010d6400cb6c13d4879}{T\-I\-X\-M\-L\-\_\-\-D\-E\-F\-A\-U\-L\-T\-\_\-\-E\-N\-C\-O\-D\-I\-N\-G})
\item 
bool \hyperlink{class_ti_xml_document_a21c0aeb0d0a720169ad4ac89523ebe93}{Save\-File} () const 
\begin{DoxyCompactList}\small\item\em Save a file using the current document value. Returns true if successful. \end{DoxyCompactList}\item 
bool \hyperlink{class_ti_xml_document_a879cdf5e981b8b2d2ef82f2546dd28fb}{Load\-File} (const char $\ast$filename, \hyperlink{tinyxml_8h_a88d51847a13ee0f4b4d320d03d2c4d96}{Ti\-Xml\-Encoding} encoding=\hyperlink{tinyxml_8h_ad5b8b092878e9010d6400cb6c13d4879}{T\-I\-X\-M\-L\-\_\-\-D\-E\-F\-A\-U\-L\-T\-\_\-\-E\-N\-C\-O\-D\-I\-N\-G})
\begin{DoxyCompactList}\small\item\em Load a file using the given filename. Returns true if successful. \end{DoxyCompactList}\item 
bool \hyperlink{class_ti_xml_document_ae869f5ebf7fc54c4a1d737fb4689fd44}{Save\-File} (const char $\ast$filename) const 
\begin{DoxyCompactList}\small\item\em Save a file using the given filename. Returns true if successful. \end{DoxyCompactList}\item 
bool \hyperlink{class_ti_xml_document_a41f6fe7200864d1dca663d230caf8db6}{Load\-File} (F\-I\-L\-E $\ast$, \hyperlink{tinyxml_8h_a88d51847a13ee0f4b4d320d03d2c4d96}{Ti\-Xml\-Encoding} encoding=\hyperlink{tinyxml_8h_ad5b8b092878e9010d6400cb6c13d4879}{T\-I\-X\-M\-L\-\_\-\-D\-E\-F\-A\-U\-L\-T\-\_\-\-E\-N\-C\-O\-D\-I\-N\-G})
\item 
bool \hyperlink{class_ti_xml_document_acf1672b4538c6d1d441f9f108aea2bf4}{Save\-File} (F\-I\-L\-E $\ast$) const 
\begin{DoxyCompactList}\small\item\em Save a file using the given F\-I\-L\-E$\ast$. Returns true if successful. \end{DoxyCompactList}\item 
bool \hyperlink{class_ti_xml_document_a18ae6ed34fed7991ebc220862dfac884}{Load\-File} (const std\-::string \&filename, \hyperlink{tinyxml_8h_a88d51847a13ee0f4b4d320d03d2c4d96}{Ti\-Xml\-Encoding} encoding=\hyperlink{tinyxml_8h_ad5b8b092878e9010d6400cb6c13d4879}{T\-I\-X\-M\-L\-\_\-\-D\-E\-F\-A\-U\-L\-T\-\_\-\-E\-N\-C\-O\-D\-I\-N\-G})
\item 
bool \hyperlink{class_ti_xml_document_a3d4fae0463f3f03679ba0b7cf6f2df52}{Save\-File} (const std\-::string \&filename) const 
\begin{DoxyCompactList}\small\item\em $<$ S\-T\-L std\-::string version. \end{DoxyCompactList}\item 
virtual const char $\ast$ \hyperlink{class_ti_xml_document_a789ad2f06f93d52bdb5570b2f3670289}{Parse} (const char $\ast$p, \hyperlink{class_ti_xml_parsing_data}{Ti\-Xml\-Parsing\-Data} $\ast$data=0, \hyperlink{tinyxml_8h_a88d51847a13ee0f4b4d320d03d2c4d96}{Ti\-Xml\-Encoding} encoding=\hyperlink{tinyxml_8h_ad5b8b092878e9010d6400cb6c13d4879}{T\-I\-X\-M\-L\-\_\-\-D\-E\-F\-A\-U\-L\-T\-\_\-\-E\-N\-C\-O\-D\-I\-N\-G})
\item 
const \hyperlink{class_ti_xml_element}{Ti\-Xml\-Element} $\ast$ \hyperlink{class_ti_xml_document_ad09d17927f908f40efb406af2fb873be}{Root\-Element} () const 
\item 
\hyperlink{class_ti_xml_element}{Ti\-Xml\-Element} $\ast$ \hyperlink{class_ti_xml_document_a0b43e762a23f938b06651bc90b8a1013}{Root\-Element} ()
\item 
bool \hyperlink{class_ti_xml_document_a6dfc01a6e5d58e56acd537dfd3bdeb29}{Error} () const 
\item 
const char $\ast$ \hyperlink{class_ti_xml_document_a9d0f689f6e09ea494ea547be8d79c25e}{Error\-Desc} () const 
\begin{DoxyCompactList}\small\item\em Contains a textual (english) description of the error if one occurs. \end{DoxyCompactList}\item 
int \hyperlink{class_ti_xml_document_af96fc2f3f9ec6422782bfe916c9e778f}{Error\-Id} () const 
\item 
int \hyperlink{class_ti_xml_document_af30efc75e804aa2e92fb8be3a8cb676e}{Error\-Row} () const 
\item 
int \hyperlink{class_ti_xml_document_aa90bc630ee5203c6109ca5fad3323649}{Error\-Col} () const 
\begin{DoxyCompactList}\small\item\em The column where the error occured. See \hyperlink{class_ti_xml_document_af30efc75e804aa2e92fb8be3a8cb676e}{Error\-Row()} \end{DoxyCompactList}\item 
void \hyperlink{class_ti_xml_document_a51dac56316f89b35bdb7d0d433ba988e}{Set\-Tab\-Size} (int \-\_\-tabsize)
\item 
int \hyperlink{class_ti_xml_document_a612360241b85bad0826b2a9ae9cda561}{Tab\-Size} () const 
\item 
void \hyperlink{class_ti_xml_document_ac66b8c28db86363315712a3574e87c35}{Clear\-Error} ()
\item 
void \hyperlink{class_ti_xml_document_af08389ec70ee9b2de7f800e206a18510}{Print} () const 
\item 
virtual void \hyperlink{class_ti_xml_document_a7b1aea204fee266b70b9c105c8bf2ada}{Print} (F\-I\-L\-E $\ast$cfile, int depth=0) const 
\begin{DoxyCompactList}\small\item\em Print this Document to a F\-I\-L\-E stream. \end{DoxyCompactList}\item 
void \hyperlink{class_ti_xml_document_a735c23e318597b920c94eae77fa206de}{Set\-Error} (int err, const char $\ast$\hyperlink{class_ti_xml_document_aa4030f989f1549f6b897147fc2851d1a}{error\-Location}, \hyperlink{class_ti_xml_parsing_data}{Ti\-Xml\-Parsing\-Data} $\ast$prev\-Data, \hyperlink{tinyxml_8h_a88d51847a13ee0f4b4d320d03d2c4d96}{Ti\-Xml\-Encoding} encoding)
\item 
virtual const \hyperlink{class_ti_xml_document}{Ti\-Xml\-Document} $\ast$ \hyperlink{class_ti_xml_document_a1dc977bde3e4fe85a8eb9d88a35ef5a4}{To\-Document} () const 
\begin{DoxyCompactList}\small\item\em Cast to a more defined type. Will return null not of the requested type. \end{DoxyCompactList}\item 
virtual \hyperlink{class_ti_xml_document}{Ti\-Xml\-Document} $\ast$ \hyperlink{class_ti_xml_document_a1025d942a1f328fd742d545e37efdd42}{To\-Document} ()
\begin{DoxyCompactList}\small\item\em Cast to a more defined type. Will return null not of the requested type. \end{DoxyCompactList}\item 
virtual bool \hyperlink{class_ti_xml_document_a3daab2f472418ef66315750202f762ae}{Accept} (\hyperlink{class_ti_xml_visitor}{Ti\-Xml\-Visitor} $\ast$content) const 
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual \hyperlink{class_ti_xml_node}{Ti\-Xml\-Node} $\ast$ \hyperlink{class_ti_xml_document_ac9e8f09b23454d953b32d1b65cd1409e}{Clone} () const 
\item 
virtual void \hyperlink{class_ti_xml_document_ab6d70b2c19e46aedb9903b3c3aa2a568}{Stream\-In} (std\-::istream $\ast$in, \hyperlink{tinyxml_8h_a92bada05fd84d9a0c9a5bbe53de26887}{T\-I\-X\-M\-L\-\_\-\-S\-T\-R\-I\-N\-G} $\ast$tag)
\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{class_ti_xml_document_af69deeb984e060bd00f668460dec8ef2}{Copy\-To} (\hyperlink{class_ti_xml_document}{Ti\-Xml\-Document} $\ast$target) const 
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{class_ti_xml_document_a1ff6a063602f31acae6f37fc049d8bbd}{error}
\item 
int \hyperlink{class_ti_xml_document_acdef97a4bb80729ac6863dd54cee7eeb}{error\-Id}
\item 
\hyperlink{tinyxml_8h_a92bada05fd84d9a0c9a5bbe53de26887}{T\-I\-X\-M\-L\-\_\-\-S\-T\-R\-I\-N\-G} \hyperlink{class_ti_xml_document_a2da9a95ba3f9c895a8d7f4de7122a642}{error\-Desc}
\item 
int \hyperlink{class_ti_xml_document_af2fa6a010b903d893d52cc6fee5575a1}{tabsize}
\item 
\hyperlink{struct_ti_xml_cursor}{Ti\-Xml\-Cursor} \hyperlink{class_ti_xml_document_aa4030f989f1549f6b897147fc2851d1a}{error\-Location}
\item 
bool \hyperlink{class_ti_xml_document_a4d5400dec9bfb55c640428de33297886}{use\-Microsoft\-B\-O\-M}
\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
Tiny\-X\-M\-L class. See \href{http://www.grinninglizard.com/tinyxml}{\tt http\-://www.\-grinninglizard.\-com/tinyxml}. 

Always the top level node. A document binds together all the X\-M\-L pieces. It can be saved, loaded, and printed to the screen. The 'value' of a document node is the xml file name.

See \begin{DoxySeeAlso}{See Also}
\href{http://www.grinninglizard.com/tinyxml}{\tt http\-://www.\-grinninglizard.\-com/tinyxml} 
\end{DoxySeeAlso}


Definition at line 1544 of file tinyxml.\-h.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_ti_xml_document_a9f5e84335708fde98400230f9f12659c}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Ti\-Xml\-Document@{Ti\-Xml\-Document}}
\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Ti\-Xml\-Document}]{\setlength{\rightskip}{0pt plus 5cm}Ti\-Xml\-Document\-::\-Ti\-Xml\-Document (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_ti_xml_document_a9f5e84335708fde98400230f9f12659c}


Create an empty document, that has no name. 



Definition at line 910 of file tinyxml\-\_\-inl.\-h.



References Clear\-Error(), tabsize, and use\-Microsoft\-B\-O\-M.



Referenced by Clone().

\hypertarget{class_ti_xml_document_ae4508b452d0c3061db085f3db27b8396}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Ti\-Xml\-Document@{Ti\-Xml\-Document}}
\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Ti\-Xml\-Document}]{\setlength{\rightskip}{0pt plus 5cm}Ti\-Xml\-Document\-::\-Ti\-Xml\-Document (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{document\-Name}
\end{DoxyParamCaption}
)}}\label{class_ti_xml_document_ae4508b452d0c3061db085f3db27b8396}


Create a document with a name. The name of the document is also the filename of the xml. 



Definition at line 917 of file tinyxml\-\_\-inl.\-h.



References Clear\-Error(), tabsize, use\-Microsoft\-B\-O\-M, and Ti\-Xml\-Node\-::value.

\hypertarget{class_ti_xml_document_a2c6e58fb99bfa76cc613f16840022225}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Ti\-Xml\-Document@{Ti\-Xml\-Document}}
\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Ti\-Xml\-Document}]{\setlength{\rightskip}{0pt plus 5cm}Ti\-Xml\-Document\-::\-Ti\-Xml\-Document (
\begin{DoxyParamCaption}
\item[{const std\-::string \&}]{document\-Name}
\end{DoxyParamCaption}
)}}\label{class_ti_xml_document_a2c6e58fb99bfa76cc613f16840022225}


Constructor. 

\hypertarget{class_ti_xml_document_a323a7486e7da6099cdc19a5ff7e74b07}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Ti\-Xml\-Document@{Ti\-Xml\-Document}}
\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Ti\-Xml\-Document}]{\setlength{\rightskip}{0pt plus 5cm}Ti\-Xml\-Document\-::\-Ti\-Xml\-Document (
\begin{DoxyParamCaption}
\item[{const {\bf Ti\-Xml\-Document} \&}]{copy}
\end{DoxyParamCaption}
)}}\label{class_ti_xml_document_a323a7486e7da6099cdc19a5ff7e74b07}


Definition at line 937 of file tinyxml\-\_\-inl.\-h.



References Copy\-To().

\hypertarget{class_ti_xml_document_a1b8a035c2c2aab38e4387246a0b712c5}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!$\sim$\-Ti\-Xml\-Document@{$\sim$\-Ti\-Xml\-Document}}
\index{$\sim$\-Ti\-Xml\-Document@{$\sim$\-Ti\-Xml\-Document}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{$\sim$\-Ti\-Xml\-Document}]{\setlength{\rightskip}{0pt plus 5cm}virtual Ti\-Xml\-Document\-::$\sim$\-Ti\-Xml\-Document (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{class_ti_xml_document_a1b8a035c2c2aab38e4387246a0b712c5}


Definition at line 1559 of file tinyxml.\-h.



\subsection{Member Function Documentation}
\hypertarget{class_ti_xml_document_a3daab2f472418ef66315750202f762ae}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Accept@{Accept}}
\index{Accept@{Accept}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Accept}]{\setlength{\rightskip}{0pt plus 5cm}bool Ti\-Xml\-Document\-::\-Accept (
\begin{DoxyParamCaption}
\item[{{\bf Ti\-Xml\-Visitor} $\ast$}]{content}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}}\label{class_ti_xml_document_a3daab2f472418ef66315750202f762ae}
Walk the X\-M\-L tree visiting this node and all of its children. 

Implements \hyperlink{class_ti_xml_node_acc0f88b7462c6cb73809d410a4f5bb86}{Ti\-Xml\-Node}.



Definition at line 1182 of file tinyxml\-\_\-inl.\-h.



References Ti\-Xml\-Node\-::\-First\-Child(), Ti\-Xml\-Visitor\-::\-Visit\-Enter(), and Ti\-Xml\-Visitor\-::\-Visit\-Exit().

\hypertarget{class_ti_xml_document_ac66b8c28db86363315712a3574e87c35}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Clear\-Error@{Clear\-Error}}
\index{Clear\-Error@{Clear\-Error}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Clear\-Error}]{\setlength{\rightskip}{0pt plus 5cm}void Ti\-Xml\-Document\-::\-Clear\-Error (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{class_ti_xml_document_ac66b8c28db86363315712a3574e87c35}
If you have handled the error, it can be reset with this call. The error state is automatically cleared if you Parse a new X\-M\-L block. 

Definition at line 1684 of file tinyxml.\-h.



References Ti\-Xml\-Cursor\-::col, error, error\-Desc, error\-Id, error\-Location, and Ti\-Xml\-Cursor\-::row.



Referenced by Parse(), and Ti\-Xml\-Document().

\hypertarget{class_ti_xml_document_ac9e8f09b23454d953b32d1b65cd1409e}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Clone@{Clone}}
\index{Clone@{Clone}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Clone}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Ti\-Xml\-Node} $\ast$ Ti\-Xml\-Document\-::\-Clone (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [protected]}, {\ttfamily [virtual]}}}\label{class_ti_xml_document_ac9e8f09b23454d953b32d1b65cd1409e}
Create an exact duplicate of this node and return it. The memory must be deleted by the caller. 

Implements \hyperlink{class_ti_xml_node_a4508cc3a2d7a98e96a54cc09c37a78a4}{Ti\-Xml\-Node}.



Definition at line 1160 of file tinyxml\-\_\-inl.\-h.



References Copy\-To(), and Ti\-Xml\-Document().

\hypertarget{class_ti_xml_document_af69deeb984e060bd00f668460dec8ef2}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Copy\-To@{Copy\-To}}
\index{Copy\-To@{Copy\-To}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Copy\-To}]{\setlength{\rightskip}{0pt plus 5cm}void Ti\-Xml\-Document\-::\-Copy\-To (
\begin{DoxyParamCaption}
\item[{{\bf Ti\-Xml\-Document} $\ast$}]{target}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [private]}}}\label{class_ti_xml_document_af69deeb984e060bd00f668460dec8ef2}


Definition at line 1145 of file tinyxml\-\_\-inl.\-h.



References Ti\-Xml\-Node\-::\-Clone(), Ti\-Xml\-Node\-::\-Copy\-To(), error, error\-Desc, Ti\-Xml\-Node\-::first\-Child, Ti\-Xml\-Node\-::\-Link\-End\-Child(), and Ti\-Xml\-Node\-::\-Next\-Sibling().



Referenced by Clone(), operator=(), and Ti\-Xml\-Document().

\hypertarget{class_ti_xml_document_a6dfc01a6e5d58e56acd537dfd3bdeb29}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Error@{Error}}
\index{Error@{Error}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Error}]{\setlength{\rightskip}{0pt plus 5cm}bool Ti\-Xml\-Document\-::\-Error (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{class_ti_xml_document_a6dfc01a6e5d58e56acd537dfd3bdeb29}
If an error occurs, Error will be set to true. Also,
\begin{DoxyItemize}
\item The \hyperlink{class_ti_xml_document_af96fc2f3f9ec6422782bfe916c9e778f}{Error\-Id()} will contain the integer identifier of the error (not generally useful)
\item The \hyperlink{class_ti_xml_document_a9d0f689f6e09ea494ea547be8d79c25e}{Error\-Desc()} method will return the name of the error. (very useful)
\item The \hyperlink{class_ti_xml_document_af30efc75e804aa2e92fb8be3a8cb676e}{Error\-Row()} and \hyperlink{class_ti_xml_document_aa90bc630ee5203c6109ca5fad3323649}{Error\-Col()} will return the location of the error (if known) 
\end{DoxyItemize}

Definition at line 1619 of file tinyxml.\-h.



References error.



Referenced by Load\-File().

\hypertarget{class_ti_xml_document_aa90bc630ee5203c6109ca5fad3323649}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Error\-Col@{Error\-Col}}
\index{Error\-Col@{Error\-Col}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Error\-Col}]{\setlength{\rightskip}{0pt plus 5cm}int Ti\-Xml\-Document\-::\-Error\-Col (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{class_ti_xml_document_aa90bc630ee5203c6109ca5fad3323649}


The column where the error occured. See \hyperlink{class_ti_xml_document_af30efc75e804aa2e92fb8be3a8cb676e}{Error\-Row()} 



Definition at line 1645 of file tinyxml.\-h.



References Ti\-Xml\-Cursor\-::col, and error\-Location.

\hypertarget{class_ti_xml_document_a9d0f689f6e09ea494ea547be8d79c25e}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Error\-Desc@{Error\-Desc}}
\index{Error\-Desc@{Error\-Desc}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Error\-Desc}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ Ti\-Xml\-Document\-::\-Error\-Desc (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{class_ti_xml_document_a9d0f689f6e09ea494ea547be8d79c25e}


Contains a textual (english) description of the error if one occurs. 



Definition at line 1624 of file tinyxml.\-h.



References error\-Desc.

\hypertarget{class_ti_xml_document_af96fc2f3f9ec6422782bfe916c9e778f}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Error\-Id@{Error\-Id}}
\index{Error\-Id@{Error\-Id}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Error\-Id}]{\setlength{\rightskip}{0pt plus 5cm}int Ti\-Xml\-Document\-::\-Error\-Id (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{class_ti_xml_document_af96fc2f3f9ec6422782bfe916c9e778f}
Generally, you probably want the error string ( \hyperlink{class_ti_xml_document_a9d0f689f6e09ea494ea547be8d79c25e}{Error\-Desc()} ). But if you prefer the Error\-Id, this function will fetch it. 

Definition at line 1631 of file tinyxml.\-h.



References error\-Id.

\hypertarget{class_ti_xml_document_af30efc75e804aa2e92fb8be3a8cb676e}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Error\-Row@{Error\-Row}}
\index{Error\-Row@{Error\-Row}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Error\-Row}]{\setlength{\rightskip}{0pt plus 5cm}int Ti\-Xml\-Document\-::\-Error\-Row (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{class_ti_xml_document_af30efc75e804aa2e92fb8be3a8cb676e}
Returns the location (if known) of the error. The first column is column 1, and the first row is row 1. A value of 0 means the row and column wasn't applicable (memory errors, for example, have no row/column) or the parser lost the error. (An error in the error reporting, in that case.)

\begin{DoxySeeAlso}{See Also}
\hyperlink{class_ti_xml_document_a51dac56316f89b35bdb7d0d433ba988e}{Set\-Tab\-Size}, \hyperlink{class_ti_xml_base_a024bceb070188df92c2a8d8852dd0853}{Row}, \hyperlink{class_ti_xml_base_ab54bfb9b70fe6dd276e7b279cab7f003}{Column} 
\end{DoxySeeAlso}


Definition at line 1642 of file tinyxml.\-h.



References error\-Location, and Ti\-Xml\-Cursor\-::row.

\hypertarget{class_ti_xml_document_a4c852a889c02cf251117fd1d9fe1845f}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Load\-File@{Load\-File}}
\index{Load\-File@{Load\-File}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Load\-File}]{\setlength{\rightskip}{0pt plus 5cm}bool Ti\-Xml\-Document\-::\-Load\-File (
\begin{DoxyParamCaption}
\item[{{\bf Ti\-Xml\-Encoding}}]{encoding = {\ttfamily {\bf T\-I\-X\-M\-L\-\_\-\-D\-E\-F\-A\-U\-L\-T\-\_\-\-E\-N\-C\-O\-D\-I\-N\-G}}}
\end{DoxyParamCaption}
)}}\label{class_ti_xml_document_a4c852a889c02cf251117fd1d9fe1845f}
Load a file using the current document value. Returns true if successful. Will delete any existing document data before loading. 

Definition at line 950 of file tinyxml\-\_\-inl.\-h.



References Ti\-Xml\-Node\-::\-Value().



Referenced by Load\-File().

\hypertarget{class_ti_xml_document_a879cdf5e981b8b2d2ef82f2546dd28fb}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Load\-File@{Load\-File}}
\index{Load\-File@{Load\-File}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Load\-File}]{\setlength{\rightskip}{0pt plus 5cm}bool Ti\-Xml\-Document\-::\-Load\-File (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{filename, }
\item[{{\bf Ti\-Xml\-Encoding}}]{encoding = {\ttfamily {\bf T\-I\-X\-M\-L\-\_\-\-D\-E\-F\-A\-U\-L\-T\-\_\-\-E\-N\-C\-O\-D\-I\-N\-G}}}
\end{DoxyParamCaption}
)}}\label{class_ti_xml_document_a879cdf5e981b8b2d2ef82f2546dd28fb}


Load a file using the given filename. Returns true if successful. 



Definition at line 971 of file tinyxml\-\_\-inl.\-h.



References Load\-File(), Set\-Error(), T\-I\-X\-M\-L\-\_\-\-E\-N\-C\-O\-D\-I\-N\-G\-\_\-\-U\-N\-K\-N\-O\-W\-N, Ti\-Xml\-Base\-::\-T\-I\-X\-M\-L\-\_\-\-E\-R\-R\-O\-R\-\_\-\-O\-P\-E\-N\-I\-N\-G\-\_\-\-F\-I\-L\-E, T\-I\-X\-M\-L\-\_\-\-S\-T\-R\-I\-N\-G, and Ti\-Xml\-Node\-::value.

\hypertarget{class_ti_xml_document_a41f6fe7200864d1dca663d230caf8db6}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Load\-File@{Load\-File}}
\index{Load\-File@{Load\-File}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Load\-File}]{\setlength{\rightskip}{0pt plus 5cm}bool Ti\-Xml\-Document\-::\-Load\-File (
\begin{DoxyParamCaption}
\item[{F\-I\-L\-E $\ast$}]{file, }
\item[{{\bf Ti\-Xml\-Encoding}}]{encoding = {\ttfamily {\bf T\-I\-X\-M\-L\-\_\-\-D\-E\-F\-A\-U\-L\-T\-\_\-\-E\-N\-C\-O\-D\-I\-N\-G}}}
\end{DoxyParamCaption}
)}}\label{class_ti_xml_document_a41f6fe7200864d1dca663d230caf8db6}
Load a file using the given F\-I\-L\-E$\ast$. Returns true if successful. Note that this method doesn't stream -\/ the entire object pointed at by the F\-I\-L\-E$\ast$ will be interpreted as an X\-M\-L file. Tiny\-X\-M\-L doesn't stream in X\-M\-L from the current file location. Streaming may be added in the future. 

Definition at line 999 of file tinyxml\-\_\-inl.\-h.



References Ti\-Xml\-Cursor\-::\-Clear(), Ti\-Xml\-Node\-::\-Clear(), Error(), Ti\-Xml\-Base\-::location, Parse(), Set\-Error(), T\-I\-X\-M\-L\-\_\-\-E\-N\-C\-O\-D\-I\-N\-G\-\_\-\-U\-N\-K\-N\-O\-W\-N, Ti\-Xml\-Base\-::\-T\-I\-X\-M\-L\-\_\-\-E\-R\-R\-O\-R\-\_\-\-D\-O\-C\-U\-M\-E\-N\-T\-\_\-\-E\-M\-P\-T\-Y, Ti\-Xml\-Base\-::\-T\-I\-X\-M\-L\-\_\-\-E\-R\-R\-O\-R\-\_\-\-O\-P\-E\-N\-I\-N\-G\-\_\-\-F\-I\-L\-E, and T\-I\-X\-M\-L\-\_\-\-S\-T\-R\-I\-N\-G.

\hypertarget{class_ti_xml_document_a18ae6ed34fed7991ebc220862dfac884}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Load\-File@{Load\-File}}
\index{Load\-File@{Load\-File}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Load\-File}]{\setlength{\rightskip}{0pt plus 5cm}bool Ti\-Xml\-Document\-::\-Load\-File (
\begin{DoxyParamCaption}
\item[{const std\-::string \&}]{filename, }
\item[{{\bf Ti\-Xml\-Encoding}}]{encoding = {\ttfamily {\bf T\-I\-X\-M\-L\-\_\-\-D\-E\-F\-A\-U\-L\-T\-\_\-\-E\-N\-C\-O\-D\-I\-N\-G}}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{class_ti_xml_document_a18ae6ed34fed7991ebc220862dfac884}

\begin{DoxyParams}{Parameters}
{\em encoding} & S\-T\-L std\-::string version. \\
\hline
\end{DoxyParams}


Definition at line 1583 of file tinyxml.\-h.



References Load\-File().

\hypertarget{class_ti_xml_document_aafbfacc3414008f619b1345775ef12a4}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!operator=@{operator=}}
\index{operator=@{operator=}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}void Ti\-Xml\-Document\-::operator= (
\begin{DoxyParamCaption}
\item[{const {\bf Ti\-Xml\-Document} \&}]{copy}
\end{DoxyParamCaption}
)}}\label{class_ti_xml_document_aafbfacc3414008f619b1345775ef12a4}


Definition at line 943 of file tinyxml\-\_\-inl.\-h.



References Ti\-Xml\-Node\-::\-Clear(), and Copy\-To().

\hypertarget{class_ti_xml_document_a789ad2f06f93d52bdb5570b2f3670289}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Parse@{Parse}}
\index{Parse@{Parse}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Parse}]{\setlength{\rightskip}{0pt plus 5cm}const char $\ast$ Ti\-Xml\-Document\-::\-Parse (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{p, }
\item[{{\bf Ti\-Xml\-Parsing\-Data} $\ast$}]{data = {\ttfamily 0}, }
\item[{{\bf Ti\-Xml\-Encoding}}]{encoding = {\ttfamily {\bf T\-I\-X\-M\-L\-\_\-\-D\-E\-F\-A\-U\-L\-T\-\_\-\-E\-N\-C\-O\-D\-I\-N\-G}}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{class_ti_xml_document_a789ad2f06f93d52bdb5570b2f3670289}
Parse the given null terminated block of xml data. Passing in an encoding to this method (either T\-I\-X\-M\-L\-\_\-\-E\-N\-C\-O\-D\-I\-N\-G\-\_\-\-L\-E\-G\-A\-C\-Y or T\-I\-X\-M\-L\-\_\-\-E\-N\-C\-O\-D\-I\-N\-G\-\_\-\-U\-T\-F8 will force Tiny\-Xml to use that encoding, regardless of what Tiny\-Xml might otherwise try to detect. 

Implements \hyperlink{class_ti_xml_base_a00e4edb0219d00a1379c856e5a1d2025}{Ti\-Xml\-Base}.



Definition at line 712 of file tinyxmlparser\-\_\-inl.\-h.



References Ti\-Xml\-Cursor\-::\-Clear(), Clear\-Error(), Ti\-Xml\-Cursor\-::col, Ti\-Xml\-Parsing\-Data\-::\-Cursor(), Ti\-Xml\-Parsing\-Data\-::cursor, Ti\-Xml\-Declaration\-::\-Encoding(), Ti\-Xml\-Node\-::first\-Child, Ti\-Xml\-Node\-::\-Identify(), Ti\-Xml\-Node\-::\-Link\-End\-Child(), Ti\-Xml\-Base\-::location, Ti\-Xml\-Base\-::\-Parse(), Ti\-Xml\-Cursor\-::row, Set\-Error(), Ti\-Xml\-Base\-::\-Skip\-White\-Space(), Ti\-Xml\-Base\-::\-String\-Equal(), Tab\-Size(), T\-I\-X\-M\-L\-\_\-\-E\-N\-C\-O\-D\-I\-N\-G\-\_\-\-L\-E\-G\-A\-C\-Y, T\-I\-X\-M\-L\-\_\-\-E\-N\-C\-O\-D\-I\-N\-G\-\_\-\-U\-N\-K\-N\-O\-W\-N, T\-I\-X\-M\-L\-\_\-\-E\-N\-C\-O\-D\-I\-N\-G\-\_\-\-U\-T\-F8, Ti\-Xml\-Base\-::\-T\-I\-X\-M\-L\-\_\-\-E\-R\-R\-O\-R\-\_\-\-D\-O\-C\-U\-M\-E\-N\-T\-\_\-\-E\-M\-P\-T\-Y, T\-I\-X\-M\-L\-\_\-\-U\-T\-F\-\_\-\-L\-E\-A\-D\-\_\-0, T\-I\-X\-M\-L\-\_\-\-U\-T\-F\-\_\-\-L\-E\-A\-D\-\_\-1, T\-I\-X\-M\-L\-\_\-\-U\-T\-F\-\_\-\-L\-E\-A\-D\-\_\-2, Ti\-Xml\-Node\-::\-To\-Declaration(), and use\-Microsoft\-B\-O\-M.



Referenced by Load\-File().

\hypertarget{class_ti_xml_document_af08389ec70ee9b2de7f800e206a18510}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Print@{Print}}
\index{Print@{Print}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Print}]{\setlength{\rightskip}{0pt plus 5cm}void Ti\-Xml\-Document\-::\-Print (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{class_ti_xml_document_af08389ec70ee9b2de7f800e206a18510}
Write the document to standard out using formatted printing (\char`\"{}pretty print\char`\"{}). 

Definition at line 1693 of file tinyxml.\-h.



Referenced by Save\-File().

\hypertarget{class_ti_xml_document_a7b1aea204fee266b70b9c105c8bf2ada}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Print@{Print}}
\index{Print@{Print}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Print}]{\setlength{\rightskip}{0pt plus 5cm}void Ti\-Xml\-Document\-::\-Print (
\begin{DoxyParamCaption}
\item[{F\-I\-L\-E $\ast$}]{cfile, }
\item[{int}]{depth = {\ttfamily 0}}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}}\label{class_ti_xml_document_a7b1aea204fee266b70b9c105c8bf2ada}


Print this Document to a F\-I\-L\-E stream. 



Implements \hyperlink{class_ti_xml_base_a0de56b3f2ef14c65091a3b916437b512}{Ti\-Xml\-Base}.



Definition at line 1171 of file tinyxml\-\_\-inl.\-h.



References Ti\-Xml\-Node\-::\-First\-Child(), and Ti\-Xml\-Attribute\-::\-Print().

\hypertarget{class_ti_xml_document_ad09d17927f908f40efb406af2fb873be}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Root\-Element@{Root\-Element}}
\index{Root\-Element@{Root\-Element}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Root\-Element}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf Ti\-Xml\-Element}$\ast$ Ti\-Xml\-Document\-::\-Root\-Element (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{class_ti_xml_document_ad09d17927f908f40efb406af2fb873be}
Get the root element -- the only top level element -- of the document. In well formed X\-M\-L, there should only be one. Tiny\-Xml is tolerant of multiple elements at the document level. 

Definition at line 1607 of file tinyxml.\-h.



References Ti\-Xml\-Node\-::\-First\-Child\-Element().

\hypertarget{class_ti_xml_document_a0b43e762a23f938b06651bc90b8a1013}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Root\-Element@{Root\-Element}}
\index{Root\-Element@{Root\-Element}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Root\-Element}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Ti\-Xml\-Element}$\ast$ Ti\-Xml\-Document\-::\-Root\-Element (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{class_ti_xml_document_a0b43e762a23f938b06651bc90b8a1013}


Definition at line 1610 of file tinyxml.\-h.



References Ti\-Xml\-Node\-::\-First\-Child\-Element().

\hypertarget{class_ti_xml_document_a21c0aeb0d0a720169ad4ac89523ebe93}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Save\-File@{Save\-File}}
\index{Save\-File@{Save\-File}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Save\-File}]{\setlength{\rightskip}{0pt plus 5cm}bool Ti\-Xml\-Document\-::\-Save\-File (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{class_ti_xml_document_a21c0aeb0d0a720169ad4ac89523ebe93}


Save a file using the current document value. Returns true if successful. 



Definition at line 959 of file tinyxml\-\_\-inl.\-h.



References Ti\-Xml\-Node\-::\-Value().



Referenced by Save\-File().

\hypertarget{class_ti_xml_document_ae869f5ebf7fc54c4a1d737fb4689fd44}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Save\-File@{Save\-File}}
\index{Save\-File@{Save\-File}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Save\-File}]{\setlength{\rightskip}{0pt plus 5cm}bool Ti\-Xml\-Document\-::\-Save\-File (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{filename}
\end{DoxyParamCaption}
) const}}\label{class_ti_xml_document_ae869f5ebf7fc54c4a1d737fb4689fd44}


Save a file using the given filename. Returns true if successful. 



Definition at line 1114 of file tinyxml\-\_\-inl.\-h.



References Save\-File().

\hypertarget{class_ti_xml_document_acf1672b4538c6d1d441f9f108aea2bf4}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Save\-File@{Save\-File}}
\index{Save\-File@{Save\-File}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Save\-File}]{\setlength{\rightskip}{0pt plus 5cm}bool Ti\-Xml\-Document\-::\-Save\-File (
\begin{DoxyParamCaption}
\item[{F\-I\-L\-E $\ast$}]{fp}
\end{DoxyParamCaption}
) const}}\label{class_ti_xml_document_acf1672b4538c6d1d441f9f108aea2bf4}


Save a file using the given F\-I\-L\-E$\ast$. Returns true if successful. 



Definition at line 1128 of file tinyxml\-\_\-inl.\-h.



References Print(), T\-I\-X\-M\-L\-\_\-\-U\-T\-F\-\_\-\-L\-E\-A\-D\-\_\-0, T\-I\-X\-M\-L\-\_\-\-U\-T\-F\-\_\-\-L\-E\-A\-D\-\_\-1, T\-I\-X\-M\-L\-\_\-\-U\-T\-F\-\_\-\-L\-E\-A\-D\-\_\-2, and use\-Microsoft\-B\-O\-M.

\hypertarget{class_ti_xml_document_a3d4fae0463f3f03679ba0b7cf6f2df52}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Save\-File@{Save\-File}}
\index{Save\-File@{Save\-File}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Save\-File}]{\setlength{\rightskip}{0pt plus 5cm}bool Ti\-Xml\-Document\-::\-Save\-File (
\begin{DoxyParamCaption}
\item[{const std\-::string \&}]{filename}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{class_ti_xml_document_a3d4fae0463f3f03679ba0b7cf6f2df52}


$<$ S\-T\-L std\-::string version. 



Definition at line 1589 of file tinyxml.\-h.



References Save\-File().

\hypertarget{class_ti_xml_document_a735c23e318597b920c94eae77fa206de}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Set\-Error@{Set\-Error}}
\index{Set\-Error@{Set\-Error}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Set\-Error}]{\setlength{\rightskip}{0pt plus 5cm}void Ti\-Xml\-Document\-::\-Set\-Error (
\begin{DoxyParamCaption}
\item[{int}]{err, }
\item[{const char $\ast$}]{error\-Location, }
\item[{{\bf Ti\-Xml\-Parsing\-Data} $\ast$}]{prev\-Data, }
\item[{{\bf Ti\-Xml\-Encoding}}]{encoding}
\end{DoxyParamCaption}
)}}\label{class_ti_xml_document_a735c23e318597b920c94eae77fa206de}


Definition at line 806 of file tinyxmlparser\-\_\-inl.\-h.



References Ti\-Xml\-Cursor\-::\-Clear(), Ti\-Xml\-Parsing\-Data\-::\-Cursor(), error, error\-Desc, error\-Id, error\-Location, Ti\-Xml\-Base\-::error\-String, Ti\-Xml\-Parsing\-Data\-::\-Stamp(), and Ti\-Xml\-Base\-::\-T\-I\-X\-M\-L\-\_\-\-E\-R\-R\-O\-R\-\_\-\-S\-T\-R\-I\-N\-G\-\_\-\-C\-O\-U\-N\-T.



Referenced by Ti\-Xml\-Node\-::\-Identify(), Ti\-Xml\-Node\-::\-Insert\-After\-Child(), Ti\-Xml\-Node\-::\-Insert\-Before\-Child(), Ti\-Xml\-Node\-::\-Insert\-End\-Child(), Ti\-Xml\-Node\-::\-Link\-End\-Child(), Load\-File(), Ti\-Xml\-Attribute\-::\-Parse(), Ti\-Xml\-Element\-::\-Parse(), Ti\-Xml\-Comment\-::\-Parse(), Ti\-Xml\-Text\-::\-Parse(), Ti\-Xml\-Declaration\-::\-Parse(), Ti\-Xml\-Unknown\-::\-Parse(), Parse(), Ti\-Xml\-Element\-::\-Read\-Value(), and Ti\-Xml\-Element\-::\-Set\-Attribute().

\hypertarget{class_ti_xml_document_a51dac56316f89b35bdb7d0d433ba988e}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Set\-Tab\-Size@{Set\-Tab\-Size}}
\index{Set\-Tab\-Size@{Set\-Tab\-Size}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Set\-Tab\-Size}]{\setlength{\rightskip}{0pt plus 5cm}void Ti\-Xml\-Document\-::\-Set\-Tab\-Size (
\begin{DoxyParamCaption}
\item[{int}]{\-\_\-tabsize}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{class_ti_xml_document_a51dac56316f89b35bdb7d0d433ba988e}
\hyperlink{class_ti_xml_document_a51dac56316f89b35bdb7d0d433ba988e}{Set\-Tab\-Size()} allows the error reporting functions (\hyperlink{class_ti_xml_document_af30efc75e804aa2e92fb8be3a8cb676e}{Error\-Row()} and \hyperlink{class_ti_xml_document_aa90bc630ee5203c6109ca5fad3323649}{Error\-Col()}) to report the correct values for row and column. It does not change the output or input in any way.

By calling this method, with a tab size greater than 0, the row and column of each node and attribute is stored when the file is loaded. Very useful for tracking the D\-O\-M back in to the source file.

The tab size is required for calculating the location of nodes. If not set, the default of 4 is used. The tabsize is set per document. Setting the tabsize to 0 disables row/column tracking.

Note that row and column tracking is not supported when using operator$>$$>$.

The tab size needs to be enabled before the parse or load. Correct usage\-: \begin{DoxyVerb}TiXmlDocument doc;
doc.SetTabSize( 8 );
doc.Load( "myfile.xml" );
\end{DoxyVerb}


\begin{DoxySeeAlso}{See Also}
\hyperlink{class_ti_xml_base_a024bceb070188df92c2a8d8852dd0853}{Row}, \hyperlink{class_ti_xml_base_ab54bfb9b70fe6dd276e7b279cab7f003}{Column} 
\end{DoxySeeAlso}


Definition at line 1673 of file tinyxml.\-h.



References tabsize.

\hypertarget{class_ti_xml_document_ab6d70b2c19e46aedb9903b3c3aa2a568}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Stream\-In@{Stream\-In}}
\index{Stream\-In@{Stream\-In}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Stream\-In}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Ti\-Xml\-Document\-::\-Stream\-In (
\begin{DoxyParamCaption}
\item[{std\-::istream $\ast$}]{in, }
\item[{{\bf T\-I\-X\-M\-L\-\_\-\-S\-T\-R\-I\-N\-G} $\ast$}]{tag}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}, {\ttfamily [virtual]}}}\label{class_ti_xml_document_ab6d70b2c19e46aedb9903b3c3aa2a568}


Implements \hyperlink{class_ti_xml_node_ab4b4af1a6b486dcbc0e327cf291270af}{Ti\-Xml\-Node}.

\hypertarget{class_ti_xml_document_a612360241b85bad0826b2a9ae9cda561}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!Tab\-Size@{Tab\-Size}}
\index{Tab\-Size@{Tab\-Size}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{Tab\-Size}]{\setlength{\rightskip}{0pt plus 5cm}int Ti\-Xml\-Document\-::\-Tab\-Size (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{class_ti_xml_document_a612360241b85bad0826b2a9ae9cda561}


Definition at line 1677 of file tinyxml.\-h.



References tabsize.



Referenced by Parse().

\hypertarget{class_ti_xml_document_a1dc977bde3e4fe85a8eb9d88a35ef5a4}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!To\-Document@{To\-Document}}
\index{To\-Document@{To\-Document}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{To\-Document}]{\setlength{\rightskip}{0pt plus 5cm}virtual const {\bf Ti\-Xml\-Document}$\ast$ Ti\-Xml\-Document\-::\-To\-Document (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{class_ti_xml_document_a1dc977bde3e4fe85a8eb9d88a35ef5a4}


Cast to a more defined type. Will return null not of the requested type. 



Reimplemented from \hyperlink{class_ti_xml_node_a8a4cda4b15c29f64cff419309aebed08}{Ti\-Xml\-Node}.



Definition at line 1707 of file tinyxml.\-h.

\hypertarget{class_ti_xml_document_a1025d942a1f328fd742d545e37efdd42}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!To\-Document@{To\-Document}}
\index{To\-Document@{To\-Document}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{To\-Document}]{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf Ti\-Xml\-Document}$\ast$ Ti\-Xml\-Document\-::\-To\-Document (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{class_ti_xml_document_a1025d942a1f328fd742d545e37efdd42}


Cast to a more defined type. Will return null not of the requested type. 



Reimplemented from \hyperlink{class_ti_xml_node_a6a4c8ac28ee7a745d059db6691e03bae}{Ti\-Xml\-Node}.



Definition at line 1710 of file tinyxml.\-h.



\subsection{Member Data Documentation}
\hypertarget{class_ti_xml_document_a1ff6a063602f31acae6f37fc049d8bbd}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!error@{error}}
\index{error@{error}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{error}]{\setlength{\rightskip}{0pt plus 5cm}bool Ti\-Xml\-Document\-::error\hspace{0.3cm}{\ttfamily [private]}}}\label{class_ti_xml_document_a1ff6a063602f31acae6f37fc049d8bbd}


Definition at line 1728 of file tinyxml.\-h.



Referenced by Clear\-Error(), Copy\-To(), Error(), and Set\-Error().

\hypertarget{class_ti_xml_document_a2da9a95ba3f9c895a8d7f4de7122a642}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!error\-Desc@{error\-Desc}}
\index{error\-Desc@{error\-Desc}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{error\-Desc}]{\setlength{\rightskip}{0pt plus 5cm}{\bf T\-I\-X\-M\-L\-\_\-\-S\-T\-R\-I\-N\-G} Ti\-Xml\-Document\-::error\-Desc\hspace{0.3cm}{\ttfamily [private]}}}\label{class_ti_xml_document_a2da9a95ba3f9c895a8d7f4de7122a642}


Definition at line 1729 of file tinyxml.\-h.



Referenced by Clear\-Error(), Copy\-To(), Error\-Desc(), and Set\-Error().

\hypertarget{class_ti_xml_document_acdef97a4bb80729ac6863dd54cee7eeb}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!error\-Id@{error\-Id}}
\index{error\-Id@{error\-Id}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{error\-Id}]{\setlength{\rightskip}{0pt plus 5cm}int Ti\-Xml\-Document\-::error\-Id\hspace{0.3cm}{\ttfamily [private]}}}\label{class_ti_xml_document_acdef97a4bb80729ac6863dd54cee7eeb}


Definition at line 1729 of file tinyxml.\-h.



Referenced by Clear\-Error(), Error\-Id(), and Set\-Error().

\hypertarget{class_ti_xml_document_aa4030f989f1549f6b897147fc2851d1a}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!error\-Location@{error\-Location}}
\index{error\-Location@{error\-Location}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{error\-Location}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Ti\-Xml\-Cursor} Ti\-Xml\-Document\-::error\-Location\hspace{0.3cm}{\ttfamily [private]}}}\label{class_ti_xml_document_aa4030f989f1549f6b897147fc2851d1a}


Definition at line 1731 of file tinyxml.\-h.



Referenced by Clear\-Error(), Error\-Col(), Error\-Row(), and Set\-Error().

\hypertarget{class_ti_xml_document_af2fa6a010b903d893d52cc6fee5575a1}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!tabsize@{tabsize}}
\index{tabsize@{tabsize}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{tabsize}]{\setlength{\rightskip}{0pt plus 5cm}int Ti\-Xml\-Document\-::tabsize\hspace{0.3cm}{\ttfamily [private]}}}\label{class_ti_xml_document_af2fa6a010b903d893d52cc6fee5575a1}


Definition at line 1730 of file tinyxml.\-h.



Referenced by Set\-Tab\-Size(), Tab\-Size(), and Ti\-Xml\-Document().

\hypertarget{class_ti_xml_document_a4d5400dec9bfb55c640428de33297886}{\index{Ti\-Xml\-Document@{Ti\-Xml\-Document}!use\-Microsoft\-B\-O\-M@{use\-Microsoft\-B\-O\-M}}
\index{use\-Microsoft\-B\-O\-M@{use\-Microsoft\-B\-O\-M}!TiXmlDocument@{Ti\-Xml\-Document}}
\subsubsection[{use\-Microsoft\-B\-O\-M}]{\setlength{\rightskip}{0pt plus 5cm}bool Ti\-Xml\-Document\-::use\-Microsoft\-B\-O\-M\hspace{0.3cm}{\ttfamily [private]}}}\label{class_ti_xml_document_a4d5400dec9bfb55c640428de33297886}


Definition at line 1732 of file tinyxml.\-h.



Referenced by Parse(), Save\-File(), and Ti\-Xml\-Document().



The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
/opt/ilcsoft/\-H\-E\-A\-D-\/2016-\/12-\/02/\-D\-D4hep/\-H\-E\-A\-D/\-D\-D\-Core/include/\-X\-M\-L/\hyperlink{tinyxml_8h}{tinyxml.\-h}\item 
/opt/ilcsoft/\-H\-E\-A\-D-\/2016-\/12-\/02/\-D\-D4hep/\-H\-E\-A\-D/\-D\-D\-Core/src/\-X\-M\-L/\hyperlink{tinyxml__inl_8h}{tinyxml\-\_\-inl.\-h}\item 
/opt/ilcsoft/\-H\-E\-A\-D-\/2016-\/12-\/02/\-D\-D4hep/\-H\-E\-A\-D/\-D\-D\-Core/src/\-X\-M\-L/\hyperlink{tinyxmlparser__inl_8h}{tinyxmlparser\-\_\-inl.\-h}\end{DoxyCompactItemize}
