1\name{startElement.SAX}
2\alias{startElement.SAX}
3\alias{endElement.SAX}
4\alias{text.SAX}
5\alias{comment.SAX}
6\alias{processingInstruction.SAX}
7\alias{entityDeclaration.SAX}
8\alias{.InitSAXMethods}
9\alias{text.SAX,ANY,SAXState-method}
10\alias{comment.SAX,ANY,SAXState-method}
11\alias{endElement.SAX,ANY,SAXState-method}
12\alias{startElement.SAX,ANY,ANY,SAXState-method}
13\alias{processingInstruction.SAX,ANY,ANY,SAXState-method}
14\alias{entityDeclaration.SAX,ANY,ANY,ANY,ANY,ANY,SAXState-method}
15\title{Generic Methods for SAX callbacks}
16\description{
17  This is a collection of generic functions
18  for which one can write methods
19  so that they are called in repsonse to
20  different SAX events.
21  The idea is that one defines methods for different
22  classes of the \code{.state} argument
23  and dispatch to different methods based on that
24  argument.
25  The functions represent the different SAX events.
26}
27\usage{
28startElement.SAX(name, atts, .state = NULL)
29endElement.SAX(name, .state = NULL)
30comment.SAX(content, .state = NULL)
31processingInstruction.SAX(target, content, .state = NULL)
32text.SAX(content, .state = NULL)
33entityDeclaration.SAX(name, base, sysId, publicId, notationName,  .state = NULL)
34.InitSAXMethods(where = "package:XML")
35}
36%- maybe also `usage' for other objects documented here.
37\arguments{
38  \item{name}{the name of the XML element or entity being declared}
39  \item{atts}{named character vector of XML attributes}
40  \item{content}{the value/string in the processing instruction or comment}
41  \item{target}{the target of the processing instruction, e.g. the R in
42    \code{<?R....>}}
43  \item{base}{x}
44  \item{sysId}{the system identifier for this entity}
45  \item{publicId}{the public identifier for the entity}
46  \item{notationName}{name of the notation specification}
47  \item{.state}{the state object on which the user-defined methods
48    should dispatch.}
49  \item{where}{the package in which the class and method definitions
50    should be defined. This is almost always unspecified.}
51
52}
53\value{
54  Each method should return the (potentially modified)
55  state value.
56}
57\references{\url{http://www.w3.org/XML}, \url{http://www.xmlsoft.org}}
58\author{Duncan Temple Lang}
59\note{ This no longer requires the Expat XML parser to be installed.
60Instead, we use libxml's SAX parser.}
61
62\seealso{
63\code{\link{xmlEventParse}}
64}
65
66%\examples{}
67\keyword{file}
68
69