Query XML Example

Send Feedback

An XML query can be used to verify or discover settings ion a device. The following example illustrates how to form a query for a client device. For more information on how to deliver the query, see Provisioning From a Desktop Computer Using Remote API and ActiveSync

Parm Query Example

This example queries the device for the current state of the alarm. The characteristic element specifies the device clock. Its parm-query child element indicates that the value of the "AlarmOn" parm should be returned.

<wap-provisioningdoc>
   <characteristic type="Clock">
    <parm-query name="AlarmOn" />
   </characteristic>
</wap-provisioningdoc>

This is the result returned by the device. The characteristic element contains a parm child element with its "AlarmOn" attribute value set to "1" indicating that the alarm is on.

<wap-provisioningdoc>
   <characteristic type="Clock">
    <parm name="AlarmOn" value="1" />
   </characteristic>
</wap-provisioningdoc>

See Also

OMA Client Provisioning XML File Examples | Clock Configuration Service Provider | parm-query Element | Options for Delivering Provisioning XML Files to Windows Mobile-Based Devices

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.