# Xml query result?

**URL:** https://forum.kirupa.com/t/xml-query-result/191003
**Category:** Uncategorized
**Created:** [June 16, 2006, 7:44am UTC](https://forum.kirupa.com/t/xml-query-result/191003 "2006-06-16T07:44:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![davez82](https://avatars.discourse-cdn.com/v4/letter/d/6bbea6/32.png) [@davez82](https://forum.kirupa.com/u/davez82)
#### Post date: [June 16, 2006, 7:44am UTC](https://forum.kirupa.com/t/xml-query-result/191003/1 "2006-06-16T07:44:31Z")

</div>

Im trying to set up a page where it would list contacts, but the page needs to filter the contact based on location; ie:

\<contact\>  
\<name\>Dave\</name\>  
\<area\>LA\</area\>  
\</contact\>  
\<contact\>  
\<name\>John\</name\>  
\<area\>OC\</area\>  
\</contact\>

so i guess i need to filter out the parent element \<contact\> based on the children element \<area\>

Im using kirupa intermediate tutorial to display the parsings. Is it possible somehow to query lets say ,page.php?area=LA or something using a XML as the database. I understand XSL can transform the data , would there be a way to filter either from a query result coding in xsl or in the php coding? is this even possible? So far i only can find mysql with the solution i need, but xml would be more convinient for me to do due to the database already bieng in ms access format.

thanks
