I
inderpaul_s
I'm having trouble printing out a XML document from inside a while loop
how can I do this ? This code is not entirely accurate as I'm new to
Perl and XML. But the point is inside the loop contains scalars which
are rettrieved from the loop. Many thanks for just reading.
================================================
#!/usr/local/bin/perl -w
use strict;
use CGI:
retty;
use HTML::TokeParser;
use LWP::Simple;
etc.....
etc.....
etc.....
my $xmlDocument = <<END_OF_XML;
<?xml version=\"1.0\"?>
<freeDB>
while (my $tagReference = $parser->get_tag('a'))
{
<search>$criteria</search>
<text>$text</text>
}
</freeDB>
END_OF_XML
print $q->h1("The XML document is");
print $q->header();
print $q->pre($xmlForHTML);
===============================================
how can I do this ? This code is not entirely accurate as I'm new to
Perl and XML. But the point is inside the loop contains scalars which
are rettrieved from the loop. Many thanks for just reading.
================================================
#!/usr/local/bin/perl -w
use strict;
use CGI:
use HTML::TokeParser;
use LWP::Simple;
etc.....
etc.....
etc.....
my $xmlDocument = <<END_OF_XML;
<?xml version=\"1.0\"?>
<freeDB>
while (my $tagReference = $parser->get_tag('a'))
{
<search>$criteria</search>
<text>$text</text>
}
</freeDB>
END_OF_XML
print $q->h1("The XML document is");
print $q->header();
print $q->pre($xmlForHTML);
===============================================