https://github.com/cran/XML
Raw File
Tip revision: 12b6974509ba21e8a712331ddf9952152f27fa77 authored by Duncan Temple Lang on 08 March 2003, 00:00:00 UTC
version 0.93-3
Tip revision: 12b6974
saveXML.Rd
\name{saveXML}
\alias{saveXML}
\alias{saveXML.XMLInternalDocument}
\alias{saveXML.XMLInternalDOM}
\title{Output internal XML Tree}
\description{
Methods for writing the representation of an XML tree stored in 
internal memory to a string or file.
}
\usage{
saveXML(doc, file=NULL, compression=0, indent=T)
saveXML.XMLInternalDocument(doc, file=NULL, compression=0, indent=T)
saveXML.XMLInternalDOM(doc, file=NULL, compression=0, indent=T)
}
\arguments{
  \item{doc}{the document object representing the XML document.}
  \item{file}{the name of the file to which the contents of the XML
    nodes will be serialized.}
  \item{compression}{an integer value between 0 and 9 indicating the
    level of compression to use when saving the file. Higher values
    indicate increased compression and hence smaller files
    at the expense of computational time to do the compression and decompression.}
  \item{indent}{a logical value indicating whether to indent
    the nested nodes when serializing to the stream.}
}
\details{
 One can create an internal XML tree (or DOM)
 using \code{\link{newXMLDoc}} and \code{\link{newXMLNode}}.
 \code{saveXML} allows one to generate a textual representation of
 that DOM in human-readable and reusable XML format.
 \code{saveXML} is a generic function that allows one to call
 the rendering operation with either the top-level node
 of the DOM or of the document object (of class \code{XMLInternalDocument}
 that is used to 
 accumulate the nodes and with which the developer 
 adds nodes.
}
\value{
 
}
\references{\url{http://www.w3.org/XML}, \url{http://www.omegahat.org/RSXML}}
\author{Duncan Temple Lang}

\seealso{
\code{\link{newXMLDoc}}
\code{\link{newXMLNode}}
\code{\link{xmlOutputBuffer}}
\code{\link{xmlOutputDOM}}
}

\examples{

}
\keyword{IO}
\keyword{file}

back to top