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


{\tt \#include $<$XLX\_\-p.h$>$}\par
{\tt \#include $<$EXPAT/expat.h$>$}\par
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include $<$stdio.h$>$}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
int \hyperlink{parse_8c_9405db0550a7cafba906ee525bbff611}{XLX\_\-parse} (const char $\ast$filename, \hyperlink{struct__XLX__state}{XLX\_\-state} $\ast$pState)
\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.11 2011/03/25 21:01:49 saxton Exp \end{Desc}


\subsection{Function Documentation}
\hypertarget{parse_8c_9405db0550a7cafba906ee525bbff611}{
\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}, \/  {\bf XLX\_\-state} $\ast$ {\em pState})}}
\label{parse_8c_9405db0550a7cafba906ee525bbff611}


Parse an XML file. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em filename}]XML file to parse\item[{\em pState}]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}


References \_\-XLX\_\-state::error, \_\-XLX\_\-state::fName, \_\-XLX\_\-state::parser, \_\-XLX\_\-state::verbose, XLX\_\-character(), XLX\_\-dispFileName(), XLX\_\-doctype(), XLX\_\-end(), and XLX\_\-start().