refresh xml

Discussion in 'XML' started by Vincent Jones, Jan 31, 2004.

  1. Why is it that whenever the XML syntax is incorrect, correcting it
    won't solve the problem.

    example
    i forgot to close my <fname> and <lname> tags and my page crashed.
    but after changing them, the page still showed the same error message.
    I had to rename the file and then load it. Is this how it works.
    Thanks
    code below..


    response.write("<?xml version='1.0' encoding='ISO-8859-1'?>")
    response.write("<guestbook>")
    while (not rs.EOF)
    response.write("<guest>")
    response.write("<fname>" & rs("Painting") & "<fname>")
    response.write("<lname>" & rs("Artist") & "<lname><br>")
    response.write("</guest>")
    rs.MoveNext()
    wend
    rs.close()
    objconn.close()
    response.write("</guestbook>")
    Vincent Jones, Jan 31, 2004
    #1
    1. Advertising

  2. Vincent Jones wrote:

    > Why is it that whenever the XML syntax is incorrect, correcting it
    > won't solve the problem.
    >
    > example
    > i forgot to close my <fname> and <lname> tags and my page crashed.


    Your page crashed? What does that mean? The browser you used to view the
    page crashed? And which browser have you been using?

    > but after changing them, the page still showed the same error message.
    > I had to rename the file and then load it. Is this how it works.


    Could depend on cache settings. But we will need to know which browser
    the problem occurs this.

    > code below..
    >
    >
    > response.write("<?xml version='1.0' encoding='ISO-8859-1'?>")
    > response.write("<guestbook>")
    > while (not rs.EOF)
    > response.write("<guest>")
    > response.write("<fname>" & rs("Painting") & "<fname>")
    > response.write("<lname>" & rs("Artist") & "<lname><br>")
    > response.write("</guest>")
    > rs.MoveNext()
    > wend
    > rs.close()
    > objconn.close()
    > response.write("</guestbook>")


    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
    Martin Honnen, Feb 1, 2004
    #2
    1. Advertising

  3. Vincent Jones

    No1 Guest

    > response.write("<fname>" & rs("Painting") & "<fname>")
    > response.write("<lname>" & rs("Artist") & "<lname><br>")


    That is not valid XML. You have an unclosed element <br>! You must
    either use <br/> or close it again with </br>.
    No1, Feb 13, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. brian lanning
    Replies:
    0
    Views:
    577
    brian lanning
    Jul 29, 2003
  2. Per Magnus L?vold
    Replies:
    1
    Views:
    5,090
    John C. Bollinger
    Oct 8, 2004
  3. Pkenty
    Replies:
    0
    Views:
    380
    Pkenty
    May 28, 2004
  4. Jawahar Rajan
    Replies:
    1
    Views:
    278
    Adrienne
    Oct 1, 2003
  5. Erik Wasser
    Replies:
    5
    Views:
    433
    Peter J. Holzer
    Mar 5, 2006
Loading...

Share This Page