Advertisement

03.23.2005 at 06:19AM PST, ID: 21361683
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.8

Error while creating XML Document from Database with ASP

Asked by SDelaneyCJ in Extensible Markup Language (XML)

Tags: , , ,

I am trying to get an XML document of all of my companies products so we can pass this on to vendors and affiliates to use to sell our items on their sites.

You can see the sample page I am working on at, http://www.collegejersey.com/store/xmlsample.asp however if you scroll to the bottom there is an error.

/************************* Error Below
XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

A semi colon character was expected. Error processing resource 'http://www.collegejersey.com/store/xmlsample.asp'. Line 1,...

/*************************

My ASP page is pretty simple and is below...

/************************* My Code
<%@LANGUAGE="VBSCRIPT"%>
<%
response.ContentType = "text/xml"

set conn=Server.CreateObject("ADODB.Connection")
conn.open "Driver={SQL Server};UID=REMOVED;password=REMOVED;DATABASE=REMOVED;SERVER=REMOVED"
sql="select sku, team, bowl, first_name, last_name, gw_ti, color, number, size, year, cut, details, price, imageFUrl, imageBUrl, smallImageUrl from products WHERE (stock > 0) AND (listHidden = 0) AND (active = -1)"
set rs=Conn.Execute(sql)

rs.MoveFirst()

response.write("<?xml version='1.0' encoding='ISO-8859-1'?>")
response.write("<inventory>")
while (not rs.EOF)
  response.write("<product>")
  response.write("<sku>" & rs("sku") & "</sku>")
  response.write("<team>" & rs("team") & "</team>")
  response.write("<first_name>" & rs("first_name") & "</first_name>")
  response.write("<last_name>" & rs("last_name") & "</last_name>")
  response.write("<game_used>" & rs("gw_ti") & "</game_used>")
  response.write("<number>" & rs("number") & "</number>")
  response.write("<size>" & rs("size") & "</size>")
  response.write("<color>" & rs("color") & "</color>")
  response.write("<cut>" & rs("cut") & "</cut>")
  response.write("<year>" & rs("year") & "</year>")
  response.write("<price>" & rs("price") & "</price>")
  response.write("</product>")
  rs.MoveNext()
wend

rs.close()
conn.close()
response.write("</inventory>")
%>

/*************************

Thanks for any help you can provide.

SeanStart Free Trial
[+][-]03.23.2005 at 08:33AM PST, ID: 13613207

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.23.2005 at 08:44AM PST, ID: 13613335

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.23.2005 at 08:51AM PST, ID: 13613420

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Extensible Markup Language (XML)
Tags: character, colon, semi, xml
Sign Up Now!
Solution Provided By: b1xml2
Participating Experts: 2
Solution Grade: A
 
 
[+][-]03.23.2005 at 09:01AM PST, ID: 13613555

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.23.2005 at 09:17AM PST, ID: 13613758

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32