WPFxUPnP その3

次に、デバイスディスクリプタを作成します。
なお、このXMLファイルは、UTF-8シグネチャなしで保存します。
この形式でないと、UPnPバイスを登録する際に、XMLファイル内容を読み取って、その内容をUPnPフレームワークに渡すのですが、失敗します。
とりあえず、サービスは、電気のON/OFFを行うSwitchPowerサービスのみ実装していきます。

<?xml version="1.0"?>
<root xmlns="urn:schemas-upnp-org:device-1-0">
  <specVersion>
    <major>1</major>
    <minor>0</minor>
  </specVersion>
  <device>
    <deviceType>urn:schemas-upnp-org:device:DimmableLight:1</deviceType>
    <friendlyName>UPnP ライト</friendlyName>
    <manufacturer>白熊</manufacturer>
    <manufacturerURL>http://www.geocities.jp/tomikuma_white_bear/</manufacturerURL>
    <modelDescription>UPnPライト</modelDescription>
    <modelName>UPnP Light Test</modelName>
    <modelURL>http://www.geocities.jp/tomikuma_white_bear/</modelURL>
    <UDN>uuid:RootDevice</UDN>
    <UPC>00000-00001</UPC>
    <serviceList>
      <service>
        <serviceType>urn:schemas-upnp-org:service:SwitchPower:1</serviceType>
        <serviceId>urn:upnp-org:serviceId:SwitchPower:1</serviceId>
        <SCPDURL>SwitchPower.xml</SCPDURL>
        <controlURL></controlURL>
        <eventSubURL></eventSubURL>
      </service>
    </serviceList>
    <presentationURL>present.html</presentationURL>
  </device>
</root>
</div>