\Header{buildPubMedAbst}{A function to generate an instantiation of a pubMedAbst class}
\keyword{utilities}{buildPubMedAbst}
\begin{Description}\relax
This function will take in a XML tree object and will create an
instance of a pubMedAbst class.  This instance is returned to the caller.
\end{Description}
\begin{Usage}
\begin{verbatim}
  buildPubMedAbst(xml)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{xml}] A XMLTree object that corresponds to a Pubmed abstract.
\end{ldescription}
\end{Arguments}
\begin{Value}
This function returns an instantiation of a pubMedAbst object to the
caller.
\end{Value}
\begin{Author}\relax
Jeff Gentry
\end{Author}
\begin{SeeAlso}\relax
\code{\Link{pubmed}},\code{\Link{genbank}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
   x <- pubmed("9695952","8325638","8422497")
   a <- xmlRoot(x)
   numAbst <- length(xmlChildren(a))
   absts <- list()
   for (i in 1:numAbst) {
      absts[[i]] <- buildPubMedAbst(a[[i]])
   }

\end{ExampleCode}
\end{Examples}

