refresh xml

Vincent Jones

Usenet Archive
Joined
Jun 8, 2003
Messages
17
Reaction score
0
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

Usenet Archive
Joined
Apr 8, 2000
Messages
6,174
Reaction score
0
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.
 

No1 (archive)

Usenet Archive
Joined
Feb 24, 2003
Messages
15
Reaction score
0
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
548,042
Messages
3,104,224
Members
248,132
Latest member
henrywalsh

Latest Threads

Top