ASP VBScript

What Have I done wrong here?

.write("<sponsored><![CDATA[" & VbCrLf)

IF arrSR(7,i) = "Y" AND arrSR(13,i) = "Y" then 
.write("1" & VbCrLf)
End IF

.write("</sponsored>" & VbCrLf)

Open in new window


Its part of a document being output as XML...

Thanks
garethtnashAsked:
Who is Participating?
 
hieloCommented:
A CDATA section starts with "<![CDATA[" and ends with "]]>":
line 7 should be:
.write("]]></sponsored>" & VbCrLf)
0
 
garethtnashAuthor Commented:
Thank you
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.