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:
<?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.