https://github.com/cran/XML
Tip revision: ccb805f005c1c130824a03bd6209c69841d26d79 authored by Duncan Temple Lang on 17 January 2012, 00:00:00 UTC
version 3.9-4
version 3.9-4
Tip revision: ccb805f
xmlToS4.Rd
\name{xmlToS4}
\alias{xmlToS4}
\alias{xmlToS4,XMLInternalNode-method}
\title{General mechanism for mapping an XML node to an S4 object}
\description{
This generic function and its methods recursively process
an XML node and its child nodes ( and theirs and so on)
to map the nodes to S4 objects.
This is the run-time function that corresponds to the
\code{\link{makeClassTemplate}} function.
}
\usage{
xmlToS4(node, obj = new(xmlName(node)), ...)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{node}{the top-level XML node to convert to an S4 object}
\item{obj}{the object whose slots are to be filled from the
information in the XML node}
\item{\dots}{additional parameters for methods}
}
\value{
The object \code{obj} whose slots have been modified.
}
\author{Duncan Temple Lang}
\seealso{
\code{\link{makeClassTemplate}}
}
\examples{
}
\keyword{programming}
\keyword{IO}
\concept{meta-computing}