Element¶
- class pyvo.utils.xml.elements.Element(config=None, pos=None, _name='', _ns='', **kwargs)[source]¶
Bases:
object
A base class for all classes that represent XML elements.
Subclasses and Mixins must initialize their independent attributes after calling
super().__init__
.Methods Summary
parse
(iterator, config)For internal use.
to_xml
(w, **kwargs)Methods Documentation
- parse(iterator, config)[source]¶
For internal use. Parse the XML content of the children of the element. Override this method and do after-parse checks after calling
super().parse
, if you need to.- Parameters:
- iteratorxml iterator
An iterator over XML elements as returned by
get_xml_iterator
.- configdict
The configuration dictionary that affects how certain elements are read.