[Last Call] Learn how to a build a cloud-first strategyRegister Now


ASP VBScript

Posted on 2012-09-03
Medium Priority
Last Modified: 2012-09-03
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...

Question by:garethtnash
LVL 82

Accepted Solution

hielo earned 2000 total points
ID: 38361767
A CDATA section starts with "<![CDATA[" and ends with "]]>":
line 7 should be:
.write("]]></sponsored>" & VbCrLf)

Author Closing Comment

ID: 38361793
Thank you

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Screencast - Getting to Know the Pipeline
Suggested Courses

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question