# Parsing XML data from Openweather map?

**URL:** <https://community.particle.io/t/parsing-xml-data-from-openweather-map/22047>\
**Category:** General\
**Created:** [April 12, 2016, 10:16pm UTC](https://community.particle.io/t/parsing-xml-data-from-openweather-map/22047 "2016-04-12T22:16:04Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![bko](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/bko/32/20704_2.png) [@bko](https://community.particle.io/u/bko)\
**Post date:** [April 13, 2016, 1:53pm UTC](https://community.particle.io/t/parsing-xml-data-from-openweather-map/22047/6 "2016-04-13T13:53:27Z")

</div>

I have parsed XML from the web using strtok and wrote about it here:

> [@REST API arguments - is there a better way?](https://community.particle.io/t/rest-api-arguments-is-there-a-better-way/960/11):
>
> Hi @metis, I thought I was the only “old school” strtok() guy here. I also use strtok to parse XML structure reading an RSS feed based on the double-quote characters. My code depends on the order of the parameters, but it could be rewritten easily to use the values instead. The string to parse looks like: \<header param1="value1" param2="value2" .../\> My code looks like: int fieldn = 1; char \* p = strtok(dataStr, "\""); while (p != NULL) { //get the values for …

---

_[View the full topic](https://community.particle.io/t/parsing-xml-data-from-openweather-map/22047)._
