I’m looking for the same thing. I want to be able to pass in a search query and receive XML back so that a search from one place can return results from WordPress and another application.
Looking around, what seems like the best idea is to modify search.php so that it can take a parameter “xml=true” and would send back that format instead. Then the consolidated search can call that URL and blend those results with anything else it wants.
Does that make the most sense?