- or download this
<border_list>
...
<pair><city>hillesdale</city><city>san mateo</city></pair>
</border_list>
- or download this
use XML::Twig;
...
# print them out in a human-readable form
map { $_->print } @adj;
- or download this
<pair>
<city>menlo park</city>
...
<city>atherton</city>
<city>menlo park</city>
</pair>
- or download this
# this routine takes a search text and a list of XML elements and
# searches them for the text
...
my ($search_text, @data) = @_;
grep { grep { $_->text eq $search_text } $_->children } @data;
}
- or download this
<city>boise</city>
- or download this
<pair><city>mountain view</city><city>sunnyvale</city></pair>