Is there any C# API to validate a generated XPS document? (i.e. to make sure the file is a valid xps file)
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!