+

Search Tips   |   Advanced Search

Xml sample for assigning a device class


This example creates a client that matches devices sending iPhone in the user agent. The device class smartphone is also assigned to the client.

<?xml version="1.0" encoding="UTF-8"?>
<request type="update" create-oids="true"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="PortalConfig_8.0.xsd">
  <portal action="locate">             <!--  iPhone -->
      <client action="update" manufacturer="Apple" markup="html"
        markup-version="" name="iPhone" ordinal="10000" uniquename="wps.client.iphone"
        version="7.0">
        <useragent-pattern>.*iPhone.*</useragent-pattern>
        <client-capability update="set">HTML_4_0</client-capability>
        <client-capability update="set">com.ibm.portal.devicesupport.deviceclass=smartphone
        </client-capability>
      </client>
  </portal>
</request>


Parent: Assigning device classes