Results 1 to 7 of 7

Thread: Random Error... [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2004
    Posts
    56

    Random Error... [RESOLVED]

    Getting the following error just wondered if anyone had any ideas.

    heres the code first of all...

    Code:
     <%
    
    response.ContentType = "text/xml"
    
    Set ObjConn = Server.CreateObject("ADODB.Connection")
    ObjConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("xml.mdb")
    ObjConn.Open
    
    response.write("<?xml version='1.0' encoding='ISO-8859-1'?>")
    response.write("<orderform>")
    
    while (not rs.EOF)
    
    response.write("<tetxboxs>")
    
            response.write("<firstname desc='Firstname' size='20' type='INPUT'/>")
            response.write("<lastname desc='Lastname' size='20' type='INPUT'/>")
            response.write("<houseno desc='House Number/Name' size='20' type='INPUT'/>")
            response.write("<street desc='Street' size='20' type='INPUT'/>")
            response.write("<town desc='Town / City' size='20' type='INPUT'/>")
            response.write("<county desc='Country' size='20' type='INPUT'/>")
            response.write("<postcode desc='Postcode' size='20' type='INPUT'/>")
            response.write("<hometel desc='Home Tel' size='20' type='INPUT'/>")
            response.write("<worktel desc='Work Tel' size='20' type='INPUT'/>")
            response.write("<email desc='E-Mail' size='20' type='INPUT'/>")
    
    response.write ("</textboxs>")
    
    rs.MoveNext()
    
    wend
    
    rs.close()
    
    ObjConn.close()
    
    response.write("</orderform>")
    
    %>
    And the error i'm getting is...

    A string literal was expected, but no opening quote character was found. Error processing resource 'http://mmtprojects.herts.ac.uk/year4/MMT4-30/XML%20Group%2047/order.asp'. Line 1, Position 80

    <?xml version='1.0' encoding='ISO-8859-1'?><orderform> <font face="Arial" size=2>
    -------------------------------------------------------------------------------^

    yet i can't find the line regarding this, is it some kind of default error? Also At the moment these will be a some input boxes, how would i change this into a form? Quite new to XML and can't find anywhere that helps really. I assume it has to be done here and not in the XSL file that will eventually be accompanying it. Anyways any help and/or suggestions would be much appriciated!
    Last edited by MavsteR; May 3rd, 2004 at 07:32 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width