golang xml Unmarshal



I am following the below example and trying to parse the xml and get day, date, high ,text, code. http://ift.tt/XayPWj


parsing Not working:



<yahooWeather>
<yweather:forecast day="Fri" date="18 Dec 2009" low="49" high="62" text="Partly Cloudy" code="30"/>
</yahooWeather>


parsing Working fine:



<yahooWeather>
<yweather day="Fri" date="18 Dec 2009" low="49" high="62" text="Partly Cloudy" code="30"/>
</yahooWeather>


trying to read/understand xml stadards and golang xml package. In mean time please suggest me the solution or doc


My code: http://ift.tt/1mZrvBP


No comments:

Post a Comment