\HeaderA{parseThemesXML}{A function to read repository theme XML}{parseThemesXML}
\keyword{utilities}{parseThemesXML}
\begin{Description}\relax
This function will read in a repository theme XML file and output a
RDA file with a list of \code{\LinkA{reposTheme}{reposTheme}} objects specifying
the themes for a repository.
\end{Description}
\begin{Usage}
\begin{verbatim}
parseThemesXML(repTXML = "repThemes.xml", repTrda = "repThemes.rda", repDrda = "repdatadesc.rda")
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{repTXML}] Filename of the input XML file.
\item[\code{repTrda}] Filename of the output RDA file.
\item[\code{repDrda}] Filename of the repdatadesc file for this repository.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This function is used by \code{\LinkA{genRepos}{genRepos}} to convert the
\code{repThemes.xml} file which specifies any repository themes in XML
format into a list of \code{\LinkA{reposTheme}{reposTheme}} objects and stores them
in a file named \code{repThemes.rda}.

The \code{repdatadesc.rda} file must be used for cases where there is
no package version specified for a package in a theme - in which case,
\code{parseThemesXML} will determine the highest version of that
package in the repository and use that for the package version of the theme.
\end{Details}
\begin{Author}\relax
Jeff Gentry
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{themes}{themes}}, \code{\LinkA{reposTheme-class}{reposTheme.Rdash.class}}, \code{\LinkA{genRepos}{genRepos}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
   ## Using non-default filenames solely for this example
   exXMLfile <- system.file(file.path("themes", "repThemes.xml"),
                            package="reposTools")
   exDDfile <- system.file(file.path("themes", "repdatadesc.rda"),
                           package="reposTools")
   exOutfile <- tempfile()

 
   parseThemesXML(repTXML=exXMLfile, repTrda=exOutfile, repDrda=exDDfile)
\end{ExampleCode}
\end{Examples}


