hi,

i have xml file similar to the following:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<addbook>
        <person>
                <firstname>AAA</name>
                <lastname>ZZZ</lastname>
                <telephone>11111</telephone>
        </person>
        <person>
                <firstname>BBB</name>
                <lastname>YYY</lastname>
                <telephone>22222</telephone>
        </person>
        <person>
                <firstname>CCC</name>
                <lastname>XXX</lastname>
                <telephone>33333</telephone>
        </person>
</addbook>

I would like to get the person node when i give the
first and the last name. 

for example if i give:
firstname = BBB & lastname = YYY

i should get 

<person>
  <firstname>BBB</name>
  <lastname>YYY</lastname>
  <telephone>22222</telephone>
</person>


Is it possible using XPath? How?
Hope someone can help.

tom

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

Reply via email to