Rev 8200 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{xmlContainsEntity}\alias{xmlContainsEntity}\alias{xmlContainsElement}\title{Checks if an entity is defined within a DTD.}\description{A DTD contains entity and element definitions.These functions test whether a DTD contains a definitionfor a particular named element or entity.}\usage{xmlContainsEntity(name, dtd)xmlContainsElement(name, dtd)}\arguments{\item{name}{ The name of the elementor entity being queried.}\item{dtd}{ The DTD in which to search for the entry.}}\details{See \code{\link{parseDTD}} for more information aboutDTDs, entities and elements.}\value{A logical value indicating whether the entrywas found in the appropriate list ofentitiy or element definitions.}\references{\url{https://www.w3.org/XML/}, \url{http://www.jclark.com/xml/},\url{https://www.omegahat.net} }\author{ Duncan Temple Lang }\seealso{ \code{\link{parseDTD}},\code{\link{dtdEntity}},\code{\link{dtdElement}},}\examples{dtdFile <- system.file("exampleData", "foo.dtd", package="XML")foo.dtd <- parseDTD(dtdFile)# Look for entities.xmlContainsEntity("foo", foo.dtd)xmlContainsEntity("bar", foo.dtd)# Now look for an elementxmlContainsElement("record", foo.dtd)}\keyword{file}