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

x
?
Solved

ASP VBScript

Posted on 2012-09-03
2
Medium Priority
?
445 Views
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...

Thanks
0
Comment
Question by:garethtnash
2 Comments
 
LVL 82

Accepted Solution

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

Author Closing Comment

by:garethtnash
ID: 38361793
Thank you
0

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