Package tdi :: Module interfaces :: Class DTDInterface
[frames] | no frames]

Class DTDInterface

source code

object --+
         |
        DTDInterface

Interface for DTD query classes
Instance Methods
bool
cdata(self, name)
Determine if the element name is a CDATA element
source code
bool
nestable(self, outer, inner)
Determine if the element inner may occur in outer.
source code
bool
empty(self, name)
Determines if the element name is empty.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

cdata(self, name)

source code 
Determine if the element name is a CDATA element
Parameters:
  • name (str) - The name of the element (lowercased)
Returns: bool
CDATA element?

nestable(self, outer, inner)

source code 
Determine if the element inner may occur in outer.
Parameters:
  • outer (str) - The name of the outer element (lowercased)
  • inner (str) - The name of the inner element (lowercased)
Returns: bool
nestable?

empty(self, name)

source code 
Determines if the element name is empty.
Parameters:
  • name (str) - The element name (lowercased)
Returns: bool
Empty element?