Click here to get back home

Can somebody help me on XML display?

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Can somebody help me on XML display? Belinda Wu 01-28-2005
Posted by Belinda Wu on January 28, 2005, 12:10 pm
Please log in for more thread options
I have a perl cgi script it can generate a xml file then I'd like to
display this xml file on the web. Code looks like below.

use CGI::Carp qw(fatalsToBrowser);
use XML::Writer;
my $xmlWri = XML::Writer->new( );
print "Content-type: text/xmlnn";
$xmlWri->xmlDecl ('UTF-8', 'yes');
$xmlWri->pi('xml-stylesheet', 'type="text/xsl" href="Standard.xsl"');
$xmlWri->startTag('TEST");
.....
.....
$xmlWri->endTag("TEST");


I get error infromation from Apache errlog file
[Wed Jan 26 18:58:37 2005] access to
/opt/apache/cgi-bin/cats/Reports/Standard.x
sl failed for belinda.chn.agilent.com, reason: Premature end of script heade
rs
exec of /opt/apache/cgi-bin/cats/Reports/Standard.xsl failed, reason: Exec f
orma
t error (errno = 8)
[Wed Jan 26 18:58:37 2005] access to /opt/apache/cgi-bin/cats/Reports/Standa
rd.x
sl failed for belinda.chn.agilent.com, reason: Premature end of script heade
rs


I got error message from IE
The stylesheet does not contain a document element. The stylesheet may
be empty, or it may not be a well-formed XML documen...



I'm trying to save the xml, generated by that script, under htdocs it
can be displayed correctly.

Can somebody tell me why this?


Posted by Sherm Pendley on January 28, 2005, 1:44 am
Please log in for more thread options
Belinda Wu wrote:

> Can somebody tell me why this?

Why are you posting the same question in multiple groups? And what's wrong
with the answer you got in comp.lang.perl.misc?

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org


Posted by Belinda Wu on January 28, 2005, 4:52 pm
Please log in for more thread options
Sorry for the mistake that I've made. I'm the newbie of the newsgroups.
I haven't gotten any answer from comp.lang.perl.misc or ther newsgrops here.
Any way it has been fixed.




Sherm Pendley wrote:
> Belinda Wu wrote:
>
>
>>Can somebody tell me why this?
>
>
> Why are you posting the same question in multiple groups? And what's wrong
> with the answer you got in comp.lang.perl.misc?
>
> sherm--
>


Posted by Sherm Pendley on January 28, 2005, 12:00 pm
Please log in for more thread options
Belinda Wu wrote:

> Sorry for the mistake that I've made. I'm the newbie of the newsgroups.
> I haven't gotten any answer from comp.lang.perl.misc or ther newsgrops
> here.

Yes you did. I posted it. That's why I'm asking you why you wasted my time.

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org


Similar ThreadsPosted
Can somebody help me on XML display? January 28, 2005, 12:08 pm
Net::Telnet Juniper display XML troubles June 5, 2007, 5:52 am
Graphics Display Message board using Perl? May 18, 2007, 5:04 pm
how to display html in email message body with mime:: entity July 11, 2004, 10:45 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap