parseDTD(extId, asText=FALSE, name="", isURL=FALSE, error = xmlErrorCumulator())
link{xmlTreeParse}
.XMLEntity
or alternatively XMLExternalEntity
if the entity refers
to an external definition.
The fields of these types of objects are
XMLAttributeDef
xmlTreeParse
,
WritingXML.html in the distribution.dtdFile <- system.file("exampleData", "foo.dtd",package="XML")
parseDTD(dtdFile)
txt <- readLines(dtdFile)
txt <- paste(txt, collapse="")
d <- parseDTD(txt, asText=TRUE)
url <- "http://www.omegahat.org/XML/DTDs/DatasetByRecord.dtd"
d <- parseDTD(url, asText=FALSE)
Run the code above in your browser using DataLab