Element

class astropy.io.votable.tree.Element[source]

Bases: object

A base class for all classes that represent XML elements in the VOTABLE file.

Methods Summary

parse(iterator, config)

For internal use.

to_xml(w, **kwargs)

For internal use.

Methods Documentation

parse(iterator, config)[source]

For internal use. Parse the XML content of the children of the element.

Parameters
iteratorxml iterable

An iterator over XML elements as returned by get_xml_iterator.

configdict

The configuration dictionary that affects how certain elements are read.

Returns
selfElement

Returns self as a convenience.

to_xml(w, **kwargs)[source]

For internal use. Output the element to XML.

Parameters
wastropy.utils.xml.writer.XMLWriter object

An XML writer to write to.

kwargsdict

Any configuration parameters to control the output.