# Question about a kirupa tutorial

**URL:** <https://forum.kirupa.com/t/question-about-a-kirupa-tutorial/227643>\
**Category:** programming\
**Created:** [May 31, 2007, 10:52pm UTC](https://forum.kirupa.com/t/question-about-a-kirupa-tutorial/227643 "2007-05-31T22:52:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![svh1](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@svh1](https://forum.kirupa.com/u/svh1)\
**Post date:** [May 31, 2007, 10:52pm UTC](https://forum.kirupa.com/t/question-about-a-kirupa-tutorial/227643/1 "2007-05-31T22:52:39Z")

</div>

Hello,

I just went through [this](http://www.kirupa.com/web/xml_php_parse_intermediate.htm) tutorial and I have what I am hoping is a simple question/request.

The XML document that I’ve being given to work with contains a huge amount of data. It’s weather for a number of geographically located stations. The thing is that I only need to worry about one or two of those stations. Each station looks to be unique thanks to an attribute…

```auto

<reporting-station code="LFPB">
    <city>Paris</city>
    <state>France</state>
    <forecast-day>
        <day>Thursday</day>
        <high>67</high>
        <low>46</low>
        <sky-conditions>Rain</sky-conditions>
    </forecast-day>
</reporting station>

<reporting-station code="KNOU">
    <city>Budapest</city>
    <state>Hungary</state>
    <forecast-day>
        <day>Thursday</day>
        <high>71</high>
        <low>53</low>
        <sky-conditions>Partly Cloudy</sky-conditions>
    </forecast-day>
</reporting station>

```

Using the above linked tutorial I’ve been able to get it to display all stations but I need to tell it to only display particular stations. I’m sure there’s an IF statement in my future but I’m both an XML and PHP novice, so I’m hoping someone can help me out.
