 |
 |
 |
Looking for a simple view on the weather. Just learning the xml stuff.
I would like to add to the the weather.com icon. Any help is
appreciated.
<html>
<head>
<body bgcolor="#000000" text="#FFFFFF">
<p class=MsoNormal><o:p></o:p><span
style='font-size:288.0pt;font-family:Arial'>
<script>
function loadXMLDoc(dname)
{
var xmlDoc;
// code for IE
if (window.ActiveXObject)
{
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
}
// code for Mozilla, Firefox, Opera, etc.
else if (document.implementation &&
document.implementation.createDocument)
{
xmlDoc=document.implementation.createDocument("","",null);
}
else
{
alert('Your browser cannot handle this script');
}
xmlDoc.async=false;
xmlDoc.load(dname);
return(xmlDoc);
}
</script>
<script type="text/javascript">
xmlDoc=loadXMLDoc("http://xoap.weather.com/weather/local/01907?cc=*&dayf=1&prod=xoap&par=1027803080&key=df6b195c9834b028");
var x=xmlDoc.getElementsByTagName('tmp');
for (i=0;i<x.length;i++)
{
document.write(x[i].childNodes[0].nodeValue)
}
</script>
</span><span
style='font-size:144.0pt;font-family:Arial'>°F</span></p>
</body>
</html>
|
 | 



|  |
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.
|  |
| |
 |
 |
 |