Click here to Skip to main content
15,917,454 members
Home / Discussions / Web Development
   

Web Development

 
QuestionMenus In ASP Pin
prabu.m26-Feb-06 7:27
prabu.m26-Feb-06 7:27 
AnswerRe: Menus In ASP Pin
Sushant_Mathur27-Feb-06 21:22
Sushant_Mathur27-Feb-06 21:22 
AnswerRe: Menus In ASP Pin
Vasudevan Deepak Kumar2-Mar-06 1:21
Vasudevan Deepak Kumar2-Mar-06 1:21 
Questionweb services Pin
nahaleh25-Feb-06 20:31
nahaleh25-Feb-06 20:31 
AnswerRe: web services Pin
Vasudevan Deepak Kumar2-Mar-06 1:20
Vasudevan Deepak Kumar2-Mar-06 1:20 
QuestionEmail sending using SMTP Pin
Sgn_Flex24-Feb-06 18:16
Sgn_Flex24-Feb-06 18:16 
AnswerRe: Email sending using SMTP Pin
Vasudevan Deepak Kumar1-Mar-06 23:05
Vasudevan Deepak Kumar1-Mar-06 23:05 
QuestionXML Parsing Problem Pin
Jimbalaya524-Feb-06 12:08
Jimbalaya524-Feb-06 12:08 
Hi,

I'm having trouble with parsing an XML file from Yahoo's Geocoder.

I'm getting an (0x800A01A8) Object required error on the line following line: Response.Write "Latitude" & xmlDoc.selectSingleNode("Latitude").Text

If I coment that our I get the same error on the next line.

Here is my code and the xml file I should be returning follows.

<%<br />
                        <br />
xmlURL = "http://api.local.yahoo.com/MapsService/V1/geocode?appid=SmartStart&street=3821%20Plantation%20Ln%20&zip=75035"<br />
                        <br />
'// Create the XMLHTTP object<br />
Set xmlHTTP = Server.CreateObject("MSXML2.XMLHTTP")<br />
                        <br />
'// Fire off the request!<br />
xmlHTTP.Open "GET", xmlURL<br />
xmlHTTP.Send <br />
<br />
'// Load the XML parser<br />
Set xmlDoc = Server.CreateObject("Microsoft.XMLDOM")<br />
xmlDoc.Async = False<br />
xmlDoc.loadXML (xmlHTTP.ResponseXML.xml)<br />
                            <br />
'// Set the Result node<br />
Set arrResult = xmlDoc.selectSingleNode("//ResultSet/Result")<br />
                            <br />
'// Show Latitude and Longitude<br />
Response.Write "Latitude" & arrResult.selectSingleNode("Latitude").Text<br />
Response.Write "Longitude" & ArrResult.selectSingleNode("Longitude").Text<br />
                            <br />
'// Unload XML parser<br />
Set xmlDoc = Nothing<br />
<br />
'// Destroy the object<br />
Set xmlHTTP = Nothing<br />
<br />
%>


Yahoo XML:

<br />
<?xml version="1.0" encoding="UTF-8" ?> <br />
<ResultSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:yahoo:maps" xsi:schemaLocation="urn:yahoo:maps http://api.local.yahoo.com/MapsService/V1/GeocodeResponse.xsd"><br />
  <Result precision="address"><br />
      <Latitude>33.109863</Latitude> <br />
      <Longitude>-96.781642</Longitude> <br />
      <Address>3821 PLANTATION LN</Address> <br />
      <City>FRISCO</City> <br />
      <State>TX</State> <br />
      <Zip>75035-8587</Zip> <br />
      <Country>US</Country> <br />
  </Result><br />
</ResultSet><br />
<!--  ws01.search.re2.yahoo.com compressed/chunked Fri Feb 24 06:41:55 PST 2006 --> <br />




Thank you,
Jim
GeneralRe: XML Parsing Problem Pin
Guffa24-Feb-06 22:09
Guffa24-Feb-06 22:09 
AnswerRe: XML Parsing Problem Pin
darkelv25-Feb-06 19:55
darkelv25-Feb-06 19:55 
QuestionRundll32 command via Batch file executed through cgi Pin
ericeh24-Feb-06 11:32
ericeh24-Feb-06 11:32 
QuestionHow to email user their forgotten password with asp, ms sql and JMail Pin
Anessa200624-Feb-06 9:58
Anessa200624-Feb-06 9:58 
AnswerRe: How to email user their forgotten password with asp, ms sql and JMail Pin
Vasudevan Deepak Kumar2-Mar-06 1:22
Vasudevan Deepak Kumar2-Mar-06 1:22 
Questionasp default button Pin
cmarmr24-Feb-06 7:04
cmarmr24-Feb-06 7:04 
AnswerRe: asp default button Pin
Divya Rathi24-Feb-06 9:30
Divya Rathi24-Feb-06 9:30 
QuestionWinHTTP Pin
mdw77724-Feb-06 6:14
mdw77724-Feb-06 6:14 
AnswerRe: WinHTTP Pin
Vasudevan Deepak Kumar2-Mar-06 1:23
Vasudevan Deepak Kumar2-Mar-06 1:23 
QuestionIE6 and/or IIS problem Pin
Rav3n24-Feb-06 2:13
Rav3n24-Feb-06 2:13 
Questionvirtual directory problem with asp.net app Pin
niki patel23-Feb-06 19:27
niki patel23-Feb-06 19:27 
AnswerRe: virtual directory problem with asp.net app Pin
Guffa23-Feb-06 21:41
Guffa23-Feb-06 21:41 
QuestionCGI requires which web server? Pin
RamL23-Feb-06 16:44
RamL23-Feb-06 16:44 
AnswerRe: CGI requires which web server? Pin
Vasudevan Deepak Kumar2-Mar-06 1:24
Vasudevan Deepak Kumar2-Mar-06 1:24 
QuestionAnybody Really Good With FCKEditor??? Pin
code-frog23-Feb-06 9:17
professionalcode-frog23-Feb-06 9:17 
AnswerRe: Anybody Really Good With FCKEditor??? Pin
Al Ortega24-Feb-06 14:40
Al Ortega24-Feb-06 14:40 
QuestionHow to set the headers of a shdocvw.dll webbrowser control ? Pin
DumitruC23-Feb-06 2:45
DumitruC23-Feb-06 2:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.