Description Usage Arguments Details Value Author(s) References See Also Examples
A DTD contains entity and element definitions. These functions test whether a DTD contains a definition for a particular named element or entity.
| 1 2 | xmlContainsEntity(name, dtd)
xmlContainsElement(name, dtd)
 | 
| name | The name of the element or entity being queried. | 
| dtd | The DTD in which to search for the entry. | 
See parseDTD for more information about
DTDs, entities and elements.
A logical value indicating whether the entry was found in the appropriate list of entitiy or element definitions.
Duncan Temple Lang
http://www.w3.org/XML, http://www.jclark.com/xml, http://www.omegahat.org
parseDTD,
dtdEntity,
dtdElement,
| 1 2 3 4 5 6 7 8 9 |  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 element
 xmlContainsElement("record", foo.dtd)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.