The MetadataKey element specifies the attributes of the service metadata package. These include the following:

  • The identifier for each hardware function supported by the device.

  • The language-specific locale for the text strings within the package.


  child elements


There are no attributes.

Child elements

Element Description


The HardwareIDList element specifies one or more hardware identification strings for the device.


The LastModifiedDate element specifies the time stamp on which the service metadata package was last changed.


The Locale element specifies the localized version of the service metadata package.


The ModelIDList element specifies the GUID of each device type or model that is specified within the service metadata package.


The MultipleLocale element specifies whether the service metadata package supports multiple locales.

Parent elements

Element Description


The PackageInfo element is the parent element of the PackageInfo XML schema. The child elements of the PackageInfo element specify the attributes of the device metadata package.


<xs:element name="MetadataKey" type="tns:MetadataKeyType" />

<xs:complexType name="MetadataKeyType">
       <xs:element name="HardwareIDList" type="tns:HardwareIDListType" />
       <xs:element name="ModelIDList" type="tns:ModelIDListType" minOccurs="0" />
      <xs:element name="ModelIDList" type="tns:ModelIDListType" />
    <xs:element name="Locale" type="tns:LocaleType" />
    <xs:element name="LastModifiedDate" type="xs:dateTime" />
    <xs:element ref="v2:MultipleLocale" minOccurs="0" />
    <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />

The following is the PackageInfov2 XML schema metadata:

<?xml version="1.0" encoding="UTF-8"?>

<xs:schema targetNamespace=""

<xs:element name="MultipleLocale" type ="xs:boolean" />



The child elements of the MetadataKey element specify the metadata that the operating system uses to do the following:

  • Search the device metadata store for a service metadata package based on either a device's ModelID or HardwareID value. If more than one metadata packages match the device's Model or Hardware ID, the operating system also compares the Locale value within the metadata package to the current language setting on the user's computer.

  • Update the device metadata store with the service metadata package if a package has a more recent LastModifiedDate value than an existing package within the device metadata store.

The MetadataKey element must contain:

The MetadataKey element is required.

Send comments about this topic to Microsoft