views:

86

answers:

2

I'm in need of a way to modify an unattend.xml file programmatically. It would be great if I could just serialize to and from an object. But to do so I would need to get a hold of the schema so that I can run it through XSD. The referenced link provides all the possible settings but it would be nice to have it in XSD format.

Any ideas?

+2  A: 

You could generate a XSD schema from an XML file using the xsd.exe utility.

xsd.exe unattend.xml
Darin Dimitrov
Is there some way to ensure that the XML is complete and valid without the XSD? I'd rather generate the XML from the definition rather than the definition from the XML.
Adam Driscoll
+1  A: 

You can get the unattend.xsd from installing the Windows AIK.

Adam Driscoll