473,396 Members | 1,683 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,396 software developers and data experts.

asp to xml sheet

Fary4u
273 100+
Hi

i'm trying to find some code that can genrate asp result to xml sheet

My xml version is <?xml version="1.0" encoding="utf-8" standalone="yes"?>

Expand|Select|Wrap|Line Numbers
  1. <%
  2. response.ContentType = "text/xml"
  3. set conn=Server.CreateObject("ADODB.Connection") 
  4. conn.provider="Microsoft.Jet.OLEDB.4.0;"
  5. conn.open server.mappath("/db/database.mdb")sql="select fname,lname from tblGuestBook"
  6. set rs=Conn.Execute(sql)response.write("<?xml version='1.0' encoding='ISO-8859-1'?>")
  7. response.write("<guestbook>")
  8. while (not rs.EOF)
  9.   response.write("<guest>")
  10.   response.write("<fname>" & rs("fname") & "</fname>")
  11.   response.write("<lname>" & rs("lname") & "</lname>")
  12.   response.write("</guest>")
  13.   rs.MoveNext()
  14. wendrs.close()
  15. conn.close()
  16. response.write("</guestbook>")
  17. %>
  18.  
thanks in advance
Apr 10 '08 #1
4 1667
DrBunchman
979 Expert 512MB
Hi Fary4u,

I've tested your code and the xml content doesn't display in IE. In FireFox however it works fine! Can you give that a try please and let me know if it works for you also?

I'll try and look into this one a bit further.

Dr B
Apr 10 '08 #2
jhardman
3,406 Expert 2GB
you should be able to validate your XML with the W3C, just to make sure there are no errors.

Jared
Apr 11 '08 #3
DrBunchman
979 Expert 512MB
Fary4u, did you ever get this fixed? I'd be interested to know what the problem was if you did.

If not, did you ever try it in FireFox?

Best Regards,

Dr B
Apr 14 '08 #4
Fary4u
273 100+
Yep i've done it & getting record from the database write xml sheet before saving it into the database.

it's working fine there was no problem i'm using this wd Flash components to access records 1 after another.
Nov 4 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Mark | last post by:
Hi - I want to allow users of an intranet application, to select their own colours etc. So I have a tbale in my database, which has fields called bgcolour, fontcolour etc. As I want all pages...
5
by: Rajiv | last post by:
HI ALL, actually , i m working in a company having large number of employee , i have two userid and password . on id is from admin group(id given to me by technology manager) of the server and...
1
by: Vivek | last post by:
Hi all, I am trying to import data from an excel sheet to MSSQL server 2000 using a web application (C#). Since I have to validate the data in the excel sheet, the approach i have used is to get...
14
by: pmud | last post by:
Hi, I need to use an Excel Sheet in ASP.NET application so that the users can enter (copy, paste ) large number of rows in this Excel Sheet. Also, Whatever the USER ENETRS needs to go to the...
0
by: Mamatha | last post by:
Hi When i clicked a button, i want to insert data from listview in VB.NET to Excel sheet. If you know the solution either above or below is ok for me. I know how to insert from a textfile,but...
3
by: | last post by:
I wrote a class in VB.NET to export the contents of a datagrid to Excel. It works perfectly on my machine, but it fails on my customers' PCs that have identical versions of Win XP (SP1) and Excel...
18
by: Frank M. Walter | last post by:
Hello, I have made an small AddIn with udf for excel 2003. I use vs2003. The point of view is the function __T() I call it in excel sheet writing =__T() I am not able to set a value to a...
2
by: surekhads | last post by:
Hi all, I have developed a project for extracting data from a HTML file and export that data to a excel sheet. I am storing that extracted data to the db. And then I am exporting that data...
6
by: poolboi | last post by:
hi all, i've got the following program that needs yr help: use Win32::OLE; # use existing instance if Excel is already running eval {$ex =...
2
hemantbasva
by: hemantbasva | last post by:
Note We need to have a template on server for generating report in multiple sheet as we do not had msoffice on server moreover this require a batch job to delete excel file created by the...
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: 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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.