NAME

VOTABLE::TABLEDATA - VOTABLE TABLEDATA XML element class


SYNOPSIS

use VOTABLE::TABLEDATA;


DESCRIPTION

This class implements the TABLEDATA element from the VOTABLE DTD. This element is the container for completely self-contained, XML-formatted data tables.

The TABLEDATA element is a Tier 2 element, and is described by the following excerpt from the VOTABLE 1.0 DTD:

 <!ELEMENT TABLEDATA (TR*)>

Methods

new($xmldom_element, %options)

Create and return a new VOTABLE::TABLEDATA object, based on the supplied XML::DOM::Element object, using %options to set the attributes of the new object. If no XML::DOM::Element object is specified, or is undefined, create and return an empty VOTABLE::TABLEDATA object. Return undef if an error occurs.

get_tr

Return a list of the VOTABLE::TR objects for the TR elements which are the children of this TABLEDATA element. Return an empty list if no TR elements are found, or if an error occurs.

set_tr(@votable_tr)

Set the TR elements for this TABLEDATA element using the supplied list of VOTABLE::TR objects. Any previously existing TR elements are first removed. Return the input list on success, or an empty list if an error occurs.

Notes on class internals


WARNINGS


SEE ALSO

VOTABLE, VOTABLE::DATA, VOTABLE::TR


AUTHOR

Eric Winter, NASA GSFC (elwinter@milkyway.gsfc.nasa.gov)


VERSION

$Id: TABLEDATA.pm,v 1.1.1.7 2002/05/21 14:13:34 elwinter Exp $