NAME
NexTrieve::Document - create XML for indexing a single document
SYNOPSIS
use NexTrieve;
$ntv = new NexTrieve( | {method => value} );
$index = $ntv->Index( | filename | xml | $resource );
$docseq = $index->Docseq( | encoding );
$document = $ntv->Document( | {method->value} );
$docseq->add( $document );
DESCRIPTION
The Document object of the Perl support for NexTrieve. Do not create directly, but through the Document method of the NexTrieve object.
$document = $ntv->Document( | {method => value} );
METHODS
The following methods apply to the adding of attributes and text.
attribute
$document->attribute( name,@value );
attributes
$document->attributes( [name1,@value1], [name2,@value2] ... [nameN,@valueN] )
text
$document->text( | name,@text );
texts
$document->texts( [name1,@value1], [name2,@value2] ... [nameN,@valueN] );
AUTHOR
Elizabeth Mattijsen, <liz@nextrieve.com>.
Please report bugs to <perlbugs@nextrieve.com>.
COPYRIGHT
Copyright (c) 1995-2002 Elizabeth Mattijsen <liz@nextrieve.com>. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
http://www.nextrieve.com, the NexTrieve.pm and the other NexTrieve::xxx modules.