Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

decoding and async?

Status
Not open for further replies.

Twopigs

Programmer
Joined
Apr 26, 2006
Messages
3
Location
US
Snif....noone likes me... snif...[:(]

LOL, I see people are looking at my questions, i'm wondering if everyone is just as confused as I am. So far this XML stuff is like trying to learn German!

I have some code working now, but the information that is being requested has encoding like this:

Cycle+Max

I have 2 issues, I need to Unencode the name attribute and I can't seem to call the page from the query string. If I put the query string in a browser and view source, then copy it to an xml page on my server it will work? My guss is it's not loading the entire page but the async=false I thought would take care of that?

Here is the layout of the xml results page:
Code:
<?xml version='1.0'?>

<dealerSearchResults>

	<featuredDealers>
	
		<dealers>
		
			<dealer 
				name="CYCLE+MAX"
				address1="1816 HORSESHOE PIKE RT322"
				
				
				addressClose="HONEY BROOK PA 19344"
				phone="610/942-9060"
            		distance="8.2 miles "
				url="s11557.parts-dealers.com"
				  />
		
		</dealers>
	
	</featuredDealers>


</dealerSearchResults>

here is my xsl sheet:
Code:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="[URL unfurl="true"]http://www.w3.org/1999/XSL/Transform">[/URL]
<xsl:template match="/">
<html>
<body>
<xsl:for-each select="dealerSearchResults/featuredDealers/dealers/dealer">
<font color="red" size="5"><b><xsl:value-of select="@name"/></b></font><br />
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

Here is the actual .asp page i'm trying to call:
Code:
<%
set xmlDoc = Server.CreateObject("Microsoft.XMLDOM")
set xslDoc = Server.CreateObject("Microsoft.XMLDOM")
xmlDoc.async = false
xmlDoc.load("[URL unfurl="true"]http://www.parts-unlimited.net/dealerLocator/dealerLocator_resultsp.jsp?new_search=y&site_name=Parts+Unlimited&zip_code=19320&distance=10")[/URL]
xslDoc.async = false
xslDoc.load("PUL3.xsl")
Response.Write(xmlDoc.transformNode(xslDoc))
%>

It seems to be the way it's loading, but eh async=false doesn't seem to work?
Any ideas?

Scott
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top