Question Displaying XML from external website

zekyl

New member
Joined
May 27, 2009
Messages
2
Programming Experience
Beginner
I'm trying to display XML data from a Twitter Search on our company site. We use VB.NET for everything (no PHP) and Twitter Searches use Atom instead of RSS, making things difficult on me. As of now, my XSL is:

-------
HTML:
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:twitter="http://api.twitter.com/" 
xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">
	<xsl:output method="html" encoding="iso-8859-1" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
 
	<xsl:template match="/">
 
		<html xmlns="http://www.w3.org/1999/xhtml">
			<head>
				<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
				<title>Test</title>
			</head>
 
			<body>
				<h2>
					<xsl:value-of  select="atom:feed/atom:title"/>
				</h2>
				<table>
					<xsl:for-each select="atom:feed/atom:entry">
						<tr>
							<td>
								<xsl:value-of  select="atom:title"/>
							</td>
						</tr>
					</xsl:for-each>
				</table>
			</body>
		</html>
 
	</xsl:template>
</xsl:stylesheet>
-------

My regular code is:

-------
HTML:
<%@ Page Language="VB" %>

<%
Dim transform As New System.Xml.Xsl.XslCompiledTransform()
 
transform.Load("http://.........../TwitterTest.xsl")
 
transform.Transform("http://search.twitter.com/search.atom?q=ducks", Nothing, Response.OutputStream)
%>
-------

The search for Ducks is just a placeholder for now. I wanted to keep it simple to get things up and running.

When I load the page, I get a Runtime Error. We have security settings that keep me from getting any feedback from the error.

Any help/advice/solutions/resources would be greatly appreciated. I'm fairly new to the coding world so this project has taught me quite a bit.
 
Addition:

I tried removing the security on our runtime errors. I went into the web.config file, found the customErrors setting, but it was already set to <customErrors mode="Off"/>

I tried adding a try-catch to find the snag, which brought back the following error:

"The remote server returned an error: (401) Unauthorized."
 
Back
Top