Search code examples
c#.netxps

How to validate an XPS document?


Is there any C# API to validate a generated XPS document? (i.e. to make sure the file is a valid xps file)


Solution

  • Don't know about an API, but there is a Microsoft tool that tests a file's conformity to the XML Paper Specification:

    http://msdn.microsoft.com/en-us/library/aa348104.aspx

    Cheers!