473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Why My XML can't be displayed?

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/xml\n\n";
$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?
Jul 20 '05 #1
0 1388

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jefferis NoSpamme | last post by:
I have a query that is showing new items in a store based upon their inventory date. The problem with my Random order sort is that when the "next" link is pressed, the random function is called...
1
by: Bob | last post by:
I am displaying a form with a datagrid populated from a select of database records which now exceed 12,000 when I select them all. The form displays just fine with all 12,000+ entries but when I...
3
by: Carolyn Vo | last post by:
I have a datagrid in my web control class that I am trying to get the current rows displayed for. I have enabled paging on the datagrid so if the user is currently on page 3 of 8, and if I have...
0
by: Ravi Ambros Wallau | last post by:
Hi: I've created a custom control - a grid that uses Infragistics to display some filters, the grid itself, and some buttons. Well, when using this control directly on WebForm, everything works...
2
by: MarkusPoehler | last post by:
After saving TEXT combined with HTML Tags into a HTM File by ASP.NET using filestream, the HTM Files is not displayed correctly in IE. Umlaute & e.g. € (Euro Sign) are not shown, I get some wrong...
1
by: mithu | last post by:
I have a web service(C#) which involves processing lot of information thru a third party component. I have couple of issues with my web service. Issue 1: My web service calls a third party...
2
by: jburkle | last post by:
The following is the onclick method called when the "Renew" button is clicked by the user in my Windows application: ..... Private Sub cmdRenew_Click(ByVal eventSender As System.Object, ByVal...
4
by: Bob Altman | last post by:
Hi all, I'm a very experienced VB.Net developer just starting to climb up the ASP.Net learning curve. I followed a couple of the beginning "how to" tutorials included with the MSDN docs, but...
0
by: dudeja.rajat | last post by:
Hi, I'm working on Windows Platform I'm facing some problem with the tkMessageBox. My code is as below: import tkMessageBox import Tix from Tkinter import * if len(installedLibPath) !=...
2
by: hinesd | last post by:
Consider a vending machine that offers the following options: Get gum Get chocolate Get popcorn Get juice Display total sold Design a program that continually allows users to select from...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.