in my site i want to do that users search form the accommodation data e.g on no. of bathrooms,no.of bedrooms,price etc to search a suitable accommodation for themselves.

now the result will come in XML which then be shown in browser with the help of XSLT. how can do this?
i m new can i have code samples and what what i need for it.also i have to make DTD for XML toooo.