Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 12th, 2004, 05:51 PM
Registered User
 
Join Date: Apr 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default asp-wml -databse

Hi, im a newbie to ASP and WML,

Anyway im trying to connect to a databse using asp and wml this error keeps appearing

Error in document

The XML document you have requested contains a lexical or syntactic error at line 18, column 11. (byte 280 of stream).

and below is my code


<% Response.ContentType = "text/vnd.wap.wml" %>

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd" >
<%
Dim RSalbum

strconn = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("db/cds.mdb")
set conn = server.createobject("adodb.connection")
conn.open strconn %>

<wml>
<card id="card1" title="CDS:albumschart">

<%SQLQuery = "SELECT ChartPosition, AlbumName, Artist, Price FROM album WHERE ChartPosition <=10 ORDER BY ChartPosition"
Set RSalbum = conn.Execute(SQLQuery) %>

<%RSalbum.movefirst
do while not RSalbum.eof %>

<p><%=RSalbum("ChartPosition")%></p>
<p><%=RSalbum("AlbumName")%></p>
<p><%=RSalbum("Artist")%></p>
<p><%=RSalbum("Price")%></p>

<% RSalbum.movenext
Loop %>

</card>
</wml>


Can anyone please advise me as to where i am going wrong

Thanks for your help

-Andy

Andy





Similar Threads
Thread Thread Starter Forum Replies Last Post
xml transformation to wml using asp.net arunagottimukkala ASP.NET 1.0 and 1.1 Professional 1 November 7th, 2007 07:23 AM
aspx for wml arunagottimukkala ASP.NET 1.0 and 1.1 Professional 0 October 26th, 2007 05:35 AM
aspx with wml arunagottimukkala ASP.NET 1.x and 2.0 Application Design 0 October 25th, 2007 09:39 AM
ASP with WML help required if you can. NeilS21 Classic ASP XML 1 June 3rd, 2005 06:05 AM
where is wml.jar mask95 All Other Wrox Books 1 August 19th, 2004 09:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.