NAME

VOTABLE::TR - VOTABLE TR XML element class


SYNOPSIS

use VOTABLE::TR;


DESCRIPTION

This class implements the TR element from the VOTABLE DTD. This element is used to store a single row in a data table.

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

 <!ELEMENT TR (TD+)>

Methods

new($xmldom_element, %options)

Create and return a new VOTABLE::TR 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::TR object. Return undef if an error occurs.

get_td

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

set_td(@votable_td)

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

as_array

Return the contents of the TD elements for this TR element as an array of values. Return an empty list if an error occurs.

from_array(@values)

Set the values of the TD element children of this TR element using the @values array. Return the list of new values added, or an enpty list if an error occurs.

Notes on class internals


WARNINGS


SEE ALSO

VOTABLE, VOTABLE::TABLEDATA, VOTABLE::TD


AUTHOR

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


VERSION

$Id: TR.pm,v 1.1.1.14 2002/06/09 21:13:08 elwinter Exp $