Query XML Example
4/8/2010
An XML query can be used to verify or discover settings on 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
The following example illustrates how to form a query for a client device
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.
<characteristic type="Clock">
<parm-query name="AlarmOn" />
</characteristic>
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.
<characteristic type="Clock">
<parm name="AlarmOn" value="1" />
</characteristic>
Remarks
One provisioning XML file typically contains configuration information for multiple Configuration Service Providers. To use this example, you must replace the values as appropriate, and add the node as a child of the OMA Client Provisioning file. For information about the syntax of this file, see OMA Client Provisioning Files. For examples, see OMA Client Provisioning XML File Examples.
See Also
Reference
Clock Configuration Service Provider
parm-query Element
Concepts
Options for Delivering Provisioning XML Files