MARC::XML output

[email protected] (Sharif Islam)
Newsgroups perl.perl4lib
Message-ID <[email protected]>
Is it possible to separate out the xml output: one file for one record
How do I find out the total number of records? I don't need to worry 
about filenames, it could be random.



    use MARC::XML;
    $x = MARC::XML->new("mymarc.mrc","usmarc");
    $x->output({file=>">myxmlfile.xml",format=>"xml"});
    $x->output({file=>">record1.xml",format=>"xml",records=>[1]});
    $x->output({file=>">record2.xml",format=>"xml",records=>[2]});
.....
...

--sharif


-- 
Sharif Islam                 Research Programmer
Library IT                   University of Illinois Urbana-Champaign
http://www.library.uiuc.edu  phone:  (217) 244-7429
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.