refresh xml

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vincent Jones

    #1

    refresh xml

    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>")
  • Martin Honnen

    #2
    Re: refresh xml



    Vincent Jones wrote:
    [color=blue]
    > 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.[/color]

    Your page crashed? What does that mean? The browser you used to view the
    page crashed? And which browser have you been using?
    [color=blue]
    > 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.[/color]

    Could depend on cache settings. But we will need to know which browser
    the problem occurs this.
    [color=blue]
    > 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>")[/color]

    --

    Martin Honnen
    http://JavaScript.FAQTs.com/

    Comment

    • No1

      #3
      Re: refresh xml

      > response.write( "<fname>" & rs("Painting") & "<fname>")[color=blue]
      > response.write( "<lname>" & rs("Artist") & "<lname><br >")[/color]

      That is not valid XML. You have an unclosed element <br>! You must
      either use <br/> or close it again with </br>.

      Comment

      Working...