File: Doctype-class.Rd

package info (click to toggle)
r-cran-xml 3.99-0.19-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,688 kB
  • sloc: ansic: 6,659; xml: 2,890; asm: 486; sh: 12; makefile: 2
file content (40 lines) | stat: -rw-r--r-- 1,471 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
\name{Doctype-class}
\docType{class}
\alias{Doctype-class}

\title{Class to describe a reference to an XML DTD}
\description{This class is intended to identify a DTD by SYSTEM file and/or PUBLIC 
  catalog identifier.  This is used in the DOCTYPE element of an XML document.}
\section{Objects from the Class}{
  Objects can be created by calls to the constructor function \code{\link{Doctype}}.
}
\section{Slots}{
  \describe{
    \item{\code{name}:}{Object of class \code{"character"}. This is the name of the 
      top-level element in the XML document.}
    \item{\code{system}:}{Object of class \code{"character"}. This is the name of the file on the
       system where the DTD document can be found. Can this be a URI?}
    \item{\code{public}:}{Object of class \code{"character"}. This gives the PUBLIC 
    identifier for the DTD that can be searched for in a catalog, for example to map the
    DTD reference to a local system element.}
  }
}
\section{Methods}{
  There is a constructor function
  and also methods for \code{\link{coerce}} to convert an object
  of this class to a character.
}

\references{\url{https://www.w3.org/XML/}, \url{http://www.xmlsoft.org}}
\author{Duncan Temple Lang}

\seealso{
 \code{\link{Doctype}}
 \code{\link{saveXML}}
}
\examples{
  d = Doctype(name = "section",
             public = c("-//OASIS//DTD DocBook XML V4.2//EN",
                       "http://oasis-open.org/docbook/xml/4.2/docbookx.dtd"))  
}
\keyword{classes}