ramya2005 has asked for the wisdom of the Perl Monks concerning the following question:
Given the XML and Hash I should provide something like this.<?xml version="1.0" encoding="UTF-8"?> <Fruits> <Fruit name='apple'/> <Fruit name='orange'/> <Fruit name='mango'/> <Fruit name='Pineapple'/> </Fruits>
That means I should retain only the fruits whose name is same as the keys in hash %color.<?xml version="1.0" encoding="UTF-8"?> <Fruits> <Fruit name='apple'/> <Fruit name='mango'/> </Fruits>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Validate XML based on hash data structure
by mirod (Canon) on Aug 17, 2005 at 22:12 UTC | |
by ramya2005 (Scribe) on Aug 17, 2005 at 23:05 UTC |