name
is a legitimate tag to use as a
direct sub-element of the
element
tag according to the
definition of the
element
element in the specified DTD. This
is a generic function that dispatches on the element type, so that
different version take effect for
XMLSequenceContent
,
XMLOrContent
,
XMLElementContent
.
dtdElementValidEntry(element, name, pos=NULL)
XMLElementDef
defining the tag
in which we are asking whether the sub-element can be used.
element
.
name
sub-element is valid
as the
pos
-th child of
element
.
This is not intended to be called directly, but indirectly by the function.
element
tag or not.
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") dtd <- parseDTD(dtdFile) dtdElementValidEntry(dtdElement("variables",dtd), "variable")