Definición de esquema XML PackageInfo
Advertencia de desuso de MBAE
Importante
A partir de Windows 10, versión 1803, la experiencia de la aplicación MBAE se reemplaza por una aplicación para UWP mo. Para obtener más información sobre las aplicaciones para UWP mo, consulta Aplicaciones de banda ancha móvil para UWP.
A continuación se muestra el espacio de nombres del esquema XML PackageInfo:
http://schemas.microsoft.com/windows/DeviceMetadata/PackageInfo/2007/11/
http://schemas.microsoft.com/windows/2010/08/DeviceMetadata/PackageInfov2
A continuación se muestra una definición del esquema PackageInfo.
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://schemas.microsoft.com/windows/DeviceMetadata/PackageInfo/2007/11/"
xmlns:v2=http://schemas.microsoft.com/windows/2010/08/DeviceMetadata/PackageInfov2
xmlns:tns="http://schemas.microsoft.com/windows/DeviceMetadata/PackageInfo/2007/11/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
blockDefault="#all">
<xs:import namespace="http://schemas.microsoft.com/windows/2010/08/DeviceMetadata/PackageInfov2" schemaLocation="PackageInfov2.xsd" />
<xs:element name="PackageInfo" type="tns:PackageInfoType" />
<xs:complexType name="PackageInfoType">
<xs:sequence>
<xs:element name="MetadataKey" type="tns:MetadataKeyType" />
<xs:element name="PackageStructure" type="tns:PackageStructureType" />
<xs:element name="Relationships" type="tns:RelationshipsType" minOccurs="0" />
<xs:element name="MetadataBuilderInformation" type="tns:MetadataBuilderInformationType" minOccurs="0" />
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="MetadataKeyType">
<xs:sequence>
<xs:choice>
<xs:sequence>
<xs:element name="HardwareIDList" type="tns:HardwareIDListType" />
<xs:element name="ModelIDList" type="tns:ModelIDListType" minOccurs="0" />
</xs:sequence>
<xs:element name="ModelIDList" type="tns:ModelIDListType" />
</xs:choice>
<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" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="ModelIDListType">
<xs:sequence>
<xs:element name="ModelID" type="tns:GUIDType" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:simpleType name="GUIDType">
<xs:restriction base="xs:string">
<xs:pattern value= "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="HardwareIDListType">
<xs:sequence>
<xs:element name="HardwareID" type="tns:HardwareIDType" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:simpleType name="HardwareIDType">
<xs:restriction base="xs:string">
<xs:minLength value="1" />
<xs:maxLength value="207" />
<xs:pattern value="^([a-zA-Z0-9!#$%&()*+\-./:;<=>?@[\\\]^_`{|}~])*$" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="LocaleType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="default" type="xs:boolean" use="required" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="PackageStructureType">
<xs:sequence>
<xs:element name="Metadata" type="tns:MetadataType" minOccurs="2" maxOccurs="unbounded" />
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="MetadataType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="MetadataID" type="xs:anyURI" use="required" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="RelationshipsType">
<xs:sequence>
<xs:element name="ExperienceID" type="tns:GUIDType" minOccurs="0" />
<xs:element name="LanguageNeutralIdentifier" type="tns:GUIDType" minOccurs="0" />
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"
</xs:sequence>
</xs:complexType>
<xs:complexType name="MetadataBuilderInformationType">
<xs:sequence>
<xs:element name="Application" type="tns:ApplicationType" />
<xs:element name="Version" type="tns:VersionType" />
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:simpleType name="ApplicationType">
<xs:restriction base="xs:string">
<xs:minLength value="1" />
<xs:maxLength value="256" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="VersionType">
<xs:restriction base="xs:string">
<xs:minLength value="1" />
<xs:maxLength value="256" />
</xs:restriction>
</xs:simpleType>
</xs:schema>
A continuación se incluyen los metadatos del esquema XML PackageInfo v2 (packageinfov2.xsd):
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://schemas.microsoft.com/windows/2010/08/DeviceMetadata/PackageInfov2"
xmlns:tns="http://schemas.microsoft.com/windows/2010/08/DeviceMetadata/PackageInfov2"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
blockDefault="#all">
<xs:element name="MultipleLocale" type ="xs:boolean" />
</xs:schema>