While XML is basically all about metadata (see XML - What's in it for us?), there has been a lot of activity going on in W3C working groups focused on searching and information retrieval.
This work has mainly been focused on creating a new XML-based standard called RDF (Resource Description Framework).
You can read more in the RDF - What's in it for us? article