Well, I wrote this message because the problem is "i". I know if I try to write another thing it works but it doesnt with "i" or "a" or "e"...
And I am consistent...the example was it and the ASP too...
Main Topics
Browse All TopicsI am in trouble trying to create a XML Document using an ASP file
I am trying to get this simple XML file:
"
<?xml version="1.0"?>
<data><![CDATA[i]]></data>
"
Well... I write this code in ASP:
"
<% @language=VBScript%>
<%
Response.ContentType = "text/xml"
%>
<%
response.write "<?xml version=""1.0""?>" & vbCrLf
Response.write "<dat>"
response.write "<![CDATA[i]]>"
response.write "</dat>"
%>
"
and I get the following error message :
"
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------
An invalid character was found in text content. Error processing resource 'http://localhost/file001.
<dat><![CDATA[
"
If I specify the codepage for the page:
"
<% @language=VBScript% @codepage=65001>
<%
Response.ContentType = "text/xml"
%>
<%
response.write "<?xml version=""1.0""?>" & vbCrLf
Response.write "<dat>"
response.write "<![CDATA[i]]>"
response.write "</dat>"
%>
then I get a different error :
"
<font face="Arial" size=2>
<p>Active Server Pages</font> <font face="Arial" size=2>error 'ASP 0203'</font>
<p>
<font face="Arial" size=2>Invalid Code Page</font>
<p>
<font face="Arial" size=2>/prueba.asp</font><
<p>
<font face="Arial" size=2>The specified code page attribute is invalid.
</font>
"
The ASP file is running under NT workstation 4.0 (service pack 6a) and the last Option Pack(with PWS). Should I upgrade to Windows 2000 to be able to generate XML from ASP? Or maybe install the IIS 4.0...
Thanks in advanced
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
[Accept BigRat's comment as answer
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
>S'Plug<
EE Cleanup Volunteer
Business Accounts
Answer for Membership
by: djsputnikPosted on 2001-10-25 at 06:47:32ID: 6579095
Hey,
Did you try taking out the 'i'?
<%
response.write "<?xml version=""1.0""?>" & vbCrLf
Response.write "<dat>"
response.write "<![CDATA[]]>"
response.write "</dat>"
%>
and also at the top you wrote <data>, but then you write <dat>. Try to be consistent.
:)