Discussion:
Show cusomized icon in device and printers
(too old to reply)
hsiu
2009-04-22 05:58:02 UTC
Permalink
Hi,

I've been trying make a metadata package with cusomized icon for our network
devices and need some help.
After copying the created metadata package to the device metadata store on
Windows 7, I got a error message from the Event Viewer.

The error code is 0x50000022.
Refer to the document called "Device Metadata Package Pipeline",
PackageInfo.xml is not well-formed (cannot be parsed).
Since I meticulously followed the document "How to Create a Device Metadata
Package for Devices and Printers" and just add two Hardware ID in the toaster
sample which is in WDK Beta, I had no idea about the error message.

The xml is as follows

Modified packageInf.xml refer to the toaster sample and
CreateDevMetadataPkg.docx:

<?xml version="1.0" encoding="utf-8"?>
<PackageInfo
xmlns="http://schemas.microsoft.com/windows/DeviceMetadata/PackageInfo/2007/11/">
<MetadataKey>
<HardwareIDList>
<HardwareID>DOID:USB\VID_xxxx&PID_yyyy</HardwareID>
<HardwareID>DOID:USB\VID_xxxx&PID_yyyy&REV_zzzz</HardwareID>
</HardwareIDList>
<Locale default="true">en-US</Locale>
<LastModifiedDate>2009-04-22T13:26:53.5108690Z</LastModifiedDate>
</MetadataKey>
<PackageStructure>
<Metadata
MetadataID="http://schemas.microsoft.com/windows/DeviceMetadata/PackageInfo/2007/11/">PackageInfo.xml</Metadata>
<Metadata
MetadataID="http://schemas.microsoft.com/windows/DeviceMetadata/DeviceInfo/2007/11/">DeviceInformation</Metadata>
<Metadata
MetadataID="http://schemas.microsoft.com/windows/DeviceMetadata/WindowsInfo/2007/11/">WindowsInformation</Metadata>
</PackageStructure>
</PackageInfo>

The DeviceInfo.xml, WindowsInfo.xml and a ICON file are the same as the
toaster sample from WDK Beta

How sould I do for the meatadata package? Is there anything wrong in the xml?
hari
2009-04-22 08:53:01 UTC
Permalink
Try replacing the '&' in the hardware IDs with '&'
--
hprasad
Post by hsiu
Hi,
I've been trying make a metadata package with cusomized icon for our network
devices and need some help.
After copying the created metadata package to the device metadata store on
Windows 7, I got a error message from the Event Viewer.
The error code is 0x50000022.
Refer to the document called "Device Metadata Package Pipeline",
PackageInfo.xml is not well-formed (cannot be parsed).
Since I meticulously followed the document "How to Create a Device Metadata
Package for Devices and Printers" and just add two Hardware ID in the toaster
sample which is in WDK Beta, I had no idea about the error message.
The xml is as follows
Modified packageInf.xml refer to the toaster sample and
<?xml version="1.0" encoding="utf-8"?>
<PackageInfo
xmlns="http://schemas.microsoft.com/windows/DeviceMetadata/PackageInfo/2007/11/">
<MetadataKey>
<HardwareIDList>
<HardwareID>DOID:USB\VID_xxxx&PID_yyyy</HardwareID>
<HardwareID>DOID:USB\VID_xxxx&PID_yyyy&REV_zzzz</HardwareID>
</HardwareIDList>
<Locale default="true">en-US</Locale>
<LastModifiedDate>2009-04-22T13:26:53.5108690Z</LastModifiedDate>
</MetadataKey>
<PackageStructure>
<Metadata
MetadataID="http://schemas.microsoft.com/windows/DeviceMetadata/PackageInfo/2007/11/">PackageInfo.xml</Metadata>
<Metadata
MetadataID="http://schemas.microsoft.com/windows/DeviceMetadata/DeviceInfo/2007/11/">DeviceInformation</Metadata>
<Metadata
MetadataID="http://schemas.microsoft.com/windows/DeviceMetadata/WindowsInfo/2007/11/">WindowsInformation</Metadata>
</PackageStructure>
</PackageInfo>
The DeviceInfo.xml, WindowsInfo.xml and a ICON file are the same as the
toaster sample from WDK Beta
How sould I do for the meatadata package? Is there anything wrong in the xml?
Ben
2009-05-12 04:04:01 UTC
Permalink
I've encountered same problem.
I used some xml validator, and it seems '&' cause the problem in hardware ID
section.

But what do you mean by replacing '&' with '&'? it looks the same to me.

Ben

Vidager
2009-05-01 18:15:01 UTC
Permalink
Hsiu,

The easiest way to find problems in your XML structures is to run a schema
validation tool to test your xml against the official schemas. You can get
the schemas from the "How to Create a Device Meatdata Package for Devices and
Printers" document, located on
http://www.microsoft.com/whdc/device/DeviceExperience/default.mspx.

Thanks,
Ben [MSFT]
Post by hsiu
Hi,
I've been trying make a metadata package with cusomized icon for our network
devices and need some help.
After copying the created metadata package to the device metadata store on
Windows 7, I got a error message from the Event Viewer.
The error code is 0x50000022.
Refer to the document called "Device Metadata Package Pipeline",
PackageInfo.xml is not well-formed (cannot be parsed).
Since I meticulously followed the document "How to Create a Device Metadata
Package for Devices and Printers" and just add two Hardware ID in the toaster
sample which is in WDK Beta, I had no idea about the error message.
The xml is as follows
Modified packageInf.xml refer to the toaster sample and
<?xml version="1.0" encoding="utf-8"?>
<PackageInfo
xmlns="http://schemas.microsoft.com/windows/DeviceMetadata/PackageInfo/2007/11/">
<MetadataKey>
<HardwareIDList>
<HardwareID>DOID:USB\VID_xxxx&PID_yyyy</HardwareID>
<HardwareID>DOID:USB\VID_xxxx&PID_yyyy&REV_zzzz</HardwareID>
</HardwareIDList>
<Locale default="true">en-US</Locale>
<LastModifiedDate>2009-04-22T13:26:53.5108690Z</LastModifiedDate>
</MetadataKey>
<PackageStructure>
<Metadata
MetadataID="http://schemas.microsoft.com/windows/DeviceMetadata/PackageInfo/2007/11/">PackageInfo.xml</Metadata>
<Metadata
MetadataID="http://schemas.microsoft.com/windows/DeviceMetadata/DeviceInfo/2007/11/">DeviceInformation</Metadata>
<Metadata
MetadataID="http://schemas.microsoft.com/windows/DeviceMetadata/WindowsInfo/2007/11/">WindowsInformation</Metadata>
</PackageStructure>
</PackageInfo>
The DeviceInfo.xml, WindowsInfo.xml and a ICON file are the same as the
toaster sample from WDK Beta
How sould I do for the meatadata package? Is there anything wrong in the xml?
Loading...