[b][red]This message was edited by shinsnake at 2006-8-31 19:53:19[/red][/b][hr]
I'm sure this is pretty simple, but I've got this XML file:http://xoap.weather.com/search/search?where=Columbus, OH
[code]<?xml version="1.0" encoding="ISO-8859-1" ?>
Columbus/Bolton Field, OH
Columbus/OSU Arpt, OH
Columbus/Rickenbacker ANGB, OH
Now, in my C# ASP.NET code behind file, I use the following code:
[code]XmlTextReader xtrLocCode = new XmlTextReader("http://xoap.weather.com/search/search?where=
" + txtCity.Text.ToString() + ",%20" +
xtrLocCode.WhitespaceHandling = WhitespaceHandling.None;
StringBuilder strText = new StringBuilder();
strText.Append(xtrLocCode.GetAttribute("id") + "
Sometimes, you get only one location id and other times you get multiple. How do I determine if I have multiple loc id's? What I plan to do is if I have multiple create a dropdownlist with each id location's text and have the user select one.
0 · ·