\hypertarget{parse_8c}{
\section{parse.c File Reference}
\label{parse_8c}\index{parse.c@{parse.c}}
}
XML parser. 

{\tt \#include \char`\"{}XLX\_\-p.h\char`\"{}}\par
{\tt \#include \char`\"{}EXPAT/expat.h\char`\"{}}\par
{\tt \#include \char`\"{}stdlib.h\char`\"{}}\par
{\tt \#include \char`\"{}stdio.h\char`\"{}}\par


Include dependency graph for parse.c:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=165pt]{parse_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{CompactItemize}
\item 
int \hyperlink{parse_8c_a0}{XLX\_\-parse} (const char $\ast$filename, \hyperlink{struct__XLX__state}{XLX\_\-state} $\ast$p\-State)
\begin{CompactList}\small\item\em Parse an XML file. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
XML parser. 

\begin{Desc}
\item[Author:]James Swain \& Owen Saxton\end{Desc}
\begin{Desc}
\item[Id]\hyperlink{parse_8c}{parse.c},v 1.10 2006/09/25 19:30:23 saxton Exp \end{Desc}


\subsection{Function Documentation}
\hypertarget{parse_8c_a0}{
\index{parse.c@{parse.c}!XLX_parse@{XLX\_\-parse}}
\index{XLX_parse@{XLX\_\-parse}!parse.c@{parse.c}}
\subsubsection[XLX\_\-parse]{\setlength{\rightskip}{0pt plus 5cm}int XLX\_\-parse (const char $\ast$ {\em filename}, \hyperlink{struct__XLX__state}{XLX\_\-state} $\ast$ {\em p\-State})}}
\label{parse_8c_a0}


Parse an XML file. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em filename}]XML file to parse\item[{\em p\-State}]State of the parser.\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em 0}]If the file is successfully parsed \item[{\em -1}]If the file cannot be opened \item[{\em -1}]If there is an error creating the parser control structure \item[{\em -1}]If there is an error reading the file \item[{\em -1}]If there is an error parsing the XML\end{description}
\end{Desc}
