refresh xml

V

Vincent Jones

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>")
 
M

Martin Honnen

Vincent said:
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.
 
N

No1

response.write( said:
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>.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top