name is a legitimate tag
to use as a direct sub-element of the
within tag
according to the definition of the
within
element in the specified DTD.
dtdValidElement(name, within, dtd, pos=NULL)
within tag.
name.
name and
within are defined.
name element inside
within. If this is specified, we have a stricter
test that accounds for sequences in which elements must appear in order.
These are comma-separated entries in the element definition.
name element
can be used inside a
within element.
FALSE indicates that it cannot.
Duncan Temple Lang
http://www.w3.org/XML, http://www.jclark.com/xml, http://www.omegahat.org
dtdFile <- system.file("exampleData", "foo.dtd", package="XML")
foo.dtd <- parseDTD(dtdFile)
# The following are true.
dtdValidElement("variable","variables", dtd = foo.dtd)
dtdValidElement("record","dataset", dtd = foo.dtd)
# This is false.
dtdValidElement("variable","dataset", dtd = foo.dtd)