1

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?

Tim Lovell-Smith
  • 15,310
  • 14
  • 76
  • 93
Adam Driscoll
  • 9,395
  • 9
  • 61
  • 104

2 Answers2

4

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

Adam Driscoll
  • 9,395
  • 9
  • 61
  • 104
3

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

xsd.exe unattend.xml
Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928
  • 2
    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 Apr 14 '10 at 20:55