XML::RAX - Record-oriented API for XML


xml-rax documentation  | view source Contained in the xml-rax distribution.

Index


NAME

Top

XML::RAX - Record-oriented API for XML

SYNOPSIS

Top

use XML::RAX; my $R = new XML::RAX();

# open from XML data $R->open( '<Table><Record><ID>1</ID><Phone>555-5555</Phone></Record></Table>' ); $R->setRecord('Record');

# open XML from file $R->openfile( 'test.xml' ); $R->setRecord('Record');

# iterate through recordset my $rec = $R->readRecord(); while ( $rec ) { print "Phone = ".$rec->getField('Phone')."\n"; $rec = $R->readRecord(); }

DESCRIPTION

Top

This interface allows you to access an XML document as you would a database recordset. In instances where the XML document fits a record/field type format, using the RAX interface will usually be simpler than using DOM or SAX to access the data.

XML::RAX requires XML::Parser.

See Sean McGrath's article on RAX for an good overview of RAX: http://www.xml.com/pub/2000/04/26/rax/index.html

AUTHOR

Top

Robert Hanson

CREDITS

Top

The RAX API was created by Sean McGrath and first introduced in his article on XML.com.

COPYRIGHT

Top


xml-rax documentation  | view source Contained in the xml-rax distribution.