Posts Tagged ‘xml for live search’

using xml for live search

Wednesday, June 3rd, 2009 by dreamluverz

For the XML interface, there is an interface specific parameter XmlType, which can control the flavor of XML interface. If ElementBased enumeration is specified, each field will be rendered as a separated tag. If AttributeBased enumeration is specified, all simple type fields will be rendered as attributes instead of elements. The default value is ElementBased.





The following sections give an example request and response for each of these options.

ElementBased Enumeration Example

Request

http://api.search.live.net/xml.aspx?AppId = [YOUR_APPID] &market=en-US&Query=testign&Sources=web+spell&web.count=1&xmltype=elementbased

Note: For information about obtaining an AppId, see Live Search Developer Center.

(more…)