\section{Ti\-Xml\-Visitor Class Reference}
\label{classTiXmlVisitor}\index{Ti\-Xml\-Visitor@{Ti\-Xml\-Visitor}}


If you call the Accept() method, it requires being passed a \doxyref{Ti\-Xml\-Visitor}{p.}{classTiXmlVisitor} class to handle callbacks.  




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

Inheritance diagram for Ti\-Xml\-Visitor\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classTiXmlVisitor}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual bool {\bf Visit\-Enter} (const {\bf Ti\-Xml\-Document} \&)\label{classTiXmlVisitor_a07baecb52dd7d8716ae2a48ad0956ee0}

\begin{DoxyCompactList}\small\item\em Visit a document. \end{DoxyCompactList}\item 
virtual bool {\bf Visit\-Exit} (const {\bf Ti\-Xml\-Document} \&)\label{classTiXmlVisitor_aa0ade4f27087447e93974e975c3246ad}

\begin{DoxyCompactList}\small\item\em Visit a document. \end{DoxyCompactList}\item 
virtual bool {\bf Visit\-Enter} (const {\bf Ti\-Xml\-Element} \&, const {\bf Ti\-Xml\-Attribute} $\ast$)\label{classTiXmlVisitor_af6c6178ffa517bbdba95d70490875fff}

\begin{DoxyCompactList}\small\item\em Visit an element. \end{DoxyCompactList}\item 
virtual bool {\bf Visit\-Exit} (const {\bf Ti\-Xml\-Element} \&)\label{classTiXmlVisitor_aec2b1f8116226d52f3a1b95dafd3a32c}

\begin{DoxyCompactList}\small\item\em Visit an element. \end{DoxyCompactList}\item 
virtual bool {\bf Visit} (const {\bf Ti\-Xml\-Declaration} \&)\label{classTiXmlVisitor_afad71c71ce6473fb9b4b64cd92de4a19}

\begin{DoxyCompactList}\small\item\em Visit a declaration. \end{DoxyCompactList}\item 
virtual bool {\bf Visit} (const {\bf Ti\-Xml\-Text} \&)\label{classTiXmlVisitor_a399b8ebca5cd14664974a32d2ce029e5}

\begin{DoxyCompactList}\small\item\em Visit a text node. \end{DoxyCompactList}\item 
virtual bool {\bf Visit} (const {\bf Ti\-Xml\-Comment} \&)\label{classTiXmlVisitor_a53a60e7a528627b31af3161972cc7fa2}

\begin{DoxyCompactList}\small\item\em Visit a comment node. \end{DoxyCompactList}\item 
virtual bool {\bf Visit} (const {\bf Ti\-Xml\-Unknown} \&)\label{classTiXmlVisitor_a7e284d607d275c51dac1adb58159ce28}

\begin{DoxyCompactList}\small\item\em Visit an unknow node. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
If you call the Accept() method, it requires being passed a \doxyref{Ti\-Xml\-Visitor}{p.}{classTiXmlVisitor} class to handle callbacks. 

For nodes that contain other nodes (Document, Element) you will get called with a Visit\-Enter/\-Visit\-Exit pair. Nodes that are always leaves are simple called with \doxyref{Visit()}{p.}{classTiXmlVisitor_afad71c71ce6473fb9b4b64cd92de4a19}.

If you return 'true' from a Visit method, recursive parsing will continue. If you return false, {\bfseries no children of this node or its sibilings} will be Visited.

All flavors of Visit methods have a default implementation that returns 'true' (continue visiting). You need to only override methods that are interesting to you.

Generally Accept() is called on the \doxyref{Ti\-Xml\-Document}{p.}{classTiXmlDocument}, although all nodes suppert Visiting.

You should never change the document from a callback.

\begin{DoxySeeAlso}{See Also}
\doxyref{Ti\-Xml\-Node\-::\-Accept()}{p.}{classTiXmlNode_acc0f88b7462c6cb73809d410a4f5bb86} 
\end{DoxySeeAlso}


The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
tinyxml.\-h\end{DoxyCompactItemize}
