\Header{writeXMLHeader}{A function to write header information to an XML file.}
\keyword{manip}{writeXMLHeader}
\begin{Description}\relax
This function writes to the Attr node of an annotate XML file.\end{Description}
\begin{Usage}
\begin{verbatim}
writeXMLHeader(outName, fileCol, name, version, organism="human")
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{outName}] A character string for the name of the XML file to store
the generated mata-data.
\item[\code{fileCol}] A vector of character strings for the names of data
columns in the original file that is going to be used to produce the
Data node of the XML file.
\item[\code{name}] A character string for an internal name that is normally
the target of the annotation (e. g. U95 for the u95 chip).
\item[\code{version}] A character string or number for the version of the
system that produces the XML file.
\item[\code{organism}] A character string for the name of the organism of
interests
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
The XML file produced has an Attr node to hold the header
information. The Attr node contains a Target node for the internal
name, a DataMade node to date the file when it is made, one to many
SourceFile nodes for names of the source files used for annotation,
and one to many Element nodes for names of the data items the Data
node of the XML will contain.\end{Details}
\begin{Value}
This function does not return any value.\end{Value}
\begin{Note}\relax
This function is part of the Bioconductor project at Dana-Farber
Cancer Institute to provide Bioinformatics functionalities through R.\end{Note}
\begin{Author}\relax
Jianhua (John) Zhang\end{Author}
\begin{References}\relax
\url{http://www.bioconductor.org/datafiles/dtds/annotate.dtd}\end{References}
\begin{SeeAlso}\relax
\code{\Link{fileToXML}}\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
makeSrcInfo()
#Write the header to a temp file
if(interactive()){
writeXMLHeader(outName = "try.xml", fileCol = c("AFFY", "LOCUSID",
"ACCNUM"), name = "Not Real", version = "0.5", organism = "human")
# View the header
readLines("try.xml")
# Clearn up
unlink("try.xml")
}
\end{ExampleCode}
\end{Examples}

