Method 1:
First , used mgmtclassgen.exe to generate the policydocument OM successfully(PolicyPlatform_PolicyDocument.cs),
mgmtclassgen policyplatform_policydocument /N root/policyplatform/documents /L CS /P d:/temp/PolicyPlatform_PolicyDocument.cs
Second, added the .cs to a project and build the project to get the dll(PolicyDocument.dll)
Third, try to used xsd.exe to generate xsd from dll, but got error.
C:/Windows/system32>xsd.exe "C:/Users/v-quliu/Documents/Visual Studio 2008/Projects/PolicyDocument/PolicyDocument/bin/Debug/PolicyDocument.dll" /o:"d:/temp"
I guess the reason is that the Virtual member “System.ComponentModel.ISite” is implemented in other child class, It cannot be serialized but it is integrated to the WMI class’s dll.