Hi,
I am trying to generate an XML document from a given schema(XSD) file. I followed the solution given at this link:
There are two issues I need to get some help.
1) Can I just install the xsd.exe along with my application on a client computer where .NET framework is installed but NOT the .NET SDK and will it work?. i.e. xsd.exe would create a class for the given schema.
2) The solution works when I run my sample application(bot h in Debug and Release modes) from within visual studio or when I run the executables from the windows explorer by double clicking the exe files.
But if I create a setup program to deploy my sample application(I have made sure I also install the xsd.exe along with my application) and then try to create the xml document, the Process.start() that tries to start the xsd.exe with the /c "filename.c s" fails with the error code 1.
I have no idea why it fails and can someone help me out with this one.
And to state the obvious, I am not sure whether I can redistribute the xsd.exe in the first place, but I am just trying to figure out this solution would work.
Thanks for all the help.
Arun.
I am trying to generate an XML document from a given schema(XSD) file. I followed the solution given at this link:
There are two issues I need to get some help.
1) Can I just install the xsd.exe along with my application on a client computer where .NET framework is installed but NOT the .NET SDK and will it work?. i.e. xsd.exe would create a class for the given schema.
2) The solution works when I run my sample application(bot h in Debug and Release modes) from within visual studio or when I run the executables from the windows explorer by double clicking the exe files.
But if I create a setup program to deploy my sample application(I have made sure I also install the xsd.exe along with my application) and then try to create the xml document, the Process.start() that tries to start the xsd.exe with the /c "filename.c s" fails with the error code 1.
I have no idea why it fails and can someone help me out with this one.
And to state the obvious, I am not sure whether I can redistribute the xsd.exe in the first place, but I am just trying to figure out this solution would work.
Thanks for all the help.
Arun.