https://github.com/cran/XML
Revision d22fc2b051e00c75cd367ab771b96f455d1e18ae authored by Duncan Temple Lang on 11 August 2004, 00:00:00 UTC, committed by Gabor Csardi on 11 August 2004, 00:00:00 UTC
1 parent 3a6da11
Tip revision: d22fc2b051e00c75cd367ab771b96f455d1e18ae authored by Duncan Temple Lang on 11 August 2004, 00:00:00 UTC
version 0.97-0
version 0.97-0
Tip revision: d22fc2b
asXMLNode.Rd
\name{asXMLNode}
\alias{asXMLNode}
\title{Converts non-XML node objects to XMLTextNode objects}
\description{
This function is used to convert S objects that
are not already \code{XMLNode} objects
into objects of that class. Specifically,
it treats the object as a string and creates
an \code{XMLTextNode} object.
}
\usage{
asXMLNode(x)
}
\arguments{
\item{x}{the object to be converted to an \code{XMLNode} object.
This is typically alread an object that inherits from \code{XMLNode}
or a string.}
}
\value{
}
\references{\url{http://www.w3.org/XML}, \url{http://www.jclark.com/xml},
\url{http://www.omegahat.org} }
\author{ Duncan Temple Lang }
\seealso{
\code{\link{xmlNode}}
\code{\link{xmlTextNode}}
}
\examples{
# creates an XMLTextNode.
asXMLNode("a text node")
# unaltered.
asXMLNode(xmlNode("p"))
}
\keyword{file}
Computing file changes ...