# XML Question for Expert

**URL:** <https://forum.kirupa.com/t/xml-question-for-expert/71521>\
**Category:** flash\
**Created:** [November 25, 2004, 10:31pm UTC](https://forum.kirupa.com/t/xml-question-for-expert/71521 "2004-11-25T22:31:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IceColdCube](https://avatars.discourse-cdn.com/v4/letter/i/35a633/32.png) [@IceColdCube](https://forum.kirupa.com/u/IceColdCube)\
**Post date:** [November 25, 2004, 10:31pm UTC](https://forum.kirupa.com/t/xml-question-for-expert/71521/1 "2004-11-25T22:31:31Z")

</div>

I have an XML question. I have been messing around with XML in flash, mainly to build a news facility for my site. My question is…

Is it possible to sort and display through certain results of the xml file depending on the value of an attribute…

```auto
 
<news>
<newsstory id="1" date="10/22/2004" archive="true">
<headline>NewsStory01</headline>
<copy>News story text<copy>
<url>News story URL</url>
</newsstory>
<newsstory id="2" date ="9/23/2004" archive="false">
<headline>NewsStory02</headline>
<copy>News story text02<copy>
<url>News story URL02</url>
</newsstory>
</news>

```

Bearing this structure in mind. What I want to be able to do is. Sort through these news stories, with previous and next buttons, but display only the records that are set to false, so:

Display news stories if the attribute (archive == “false”)  
Hide news stories if the attribute (archive == “true”)

I hope this makes sense, If anyone could help that would be great…

Happy Thanksgiving…
