Class ContentSpec
- Package :
- xml
This class represents a node in the parse tree of a content specification,
as contained in an <!ELEMENT ..> declaration. The parsed tree represents
the regular expression used to validate content elements. Each node
contains an op and two args.
- Source
is_mixed()
-
- Source
isnt_mixed()
-
- Source
pattern_match(subject, pos)
-
The recursive element of pattern matching, called by the above. It returns
the sequence of initial matches of the pattern in subject, starting from pos.
- Source
pattern_match_element(el)
-
Match the given Element with the pattern whose root is this object.
- Source
print_structure(f, indent)
-
Print the structure to the given file. For debugging.
- Source
to_string()
-
Get a string representation of this object.
- Source
arg1
-
arg2
-
is_mixed_flag
-
op
-