# Xml Filtering to Search and Extract Relevant Info

**URL:** <https://forum.kirupa.com/t/xml-filtering-to-search-and-extract-relevant-info/289544>\
**Category:** flash\
**Created:** [June 1, 2009, 5:55pm UTC](https://forum.kirupa.com/t/xml-filtering-to-search-and-extract-relevant-info/289544 "2009-06-01T17:55:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zik80](https://avatars.discourse-cdn.com/v4/letter/z/c37758/32.png) [@zik80](https://forum.kirupa.com/u/zik80)\
**Post date:** [June 1, 2009, 5:55pm UTC](https://forum.kirupa.com/t/xml-filtering-to-search-and-extract-relevant-info/289544/1 "2009-06-01T17:55:40Z")

</div>

I’m trying to extract relevant information from an xml in AS3 using text and not a node name as the filter, and I’m not quite getting it. Here’s a sample xml:

```auto
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Storybook>
  <story>
    <chaps>
      <ch>
       <pt>Chapter 1 is a summary of the story of Jane Dukas.</pt>
       <pt>Jane Dukas fell in love with Kuznos.</pt>
      </ch>
      <ch>
       <pt>Chapter 2 is a summary of how James helped Kuznos.</pt>
       <pt>There are more complex situations here involving Janet.</pt>
      </ch>
      <ch>
       <pt>Chapter 3 finalizes this part of the plot involving Jane.</pt>
       <pt>James becomes the unwilling hero.</pt>
      </ch>
    </chaps>
  </story>
</Storybook>

```

I would like a search function that would give me to a list of the paragraphs where “Jane”, or “Janet” or any other supplied word appears within the xml.
