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

{\tt \#include \char`\"{}XLX/parse.h\char`\"{}}\par
{\tt \#include $<$expat.h$>$}\par
{\tt \#include $<$stdio.h$>$}\par


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


\subsection{Detailed Description}
XML parser. 

\begin{Desc}
\item[Author:]James Swain -- \href{mailto:jswain@slac.stanford.edu}{\tt jswain@slac.stanford.edu}\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}unsigned XLX\_\-parse (const char $\ast$ {\em filename}, \hyperlink{struct__XLX__state}{XLX\_\-state} $\ast$ {\em p\-State})}}
\label{parse_8c_a0}


Parses {\em filename\/}. 

\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}
