Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
[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 · ·