Click here to Skip to main content
15,898,222 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I try to use my xsd file to generate xml file and .NET Object Class
I execute the command on Developer Command Prompt for VS2012.

VB
C:\Program Files (x86)\Microsoft Visual Studio 11.0>xsd.exe /c http://schemas.mo
nster.com/Current/XSD/Job.xsd  


But I have an error that I can't solve it : Error: URI formats are not supported.
Help please
Posted
Updated 30-Mar-14 8:45am
v2
Comments
Kornfeld Eliyahu Peter 30-Mar-14 14:41pm    
You may show us your xsd...
amiach 30-Mar-14 14:45pm    
the xsd is provided by Monster , I use an API of Monster.com , it is on the link below http://schemas.monster.com/Current/XSD/Job.xsd

1 solution

The problem that xsd.exe can't get its input file in URI format. It expects something like C:\...
So download that xsd file to local disk then run xsd.exe no it...
 
Share this answer
 
Comments
amiach 30-Mar-14 14:50pm    
I already try that , I place the xsd file on the locak disk but this error appears
Error: invalid command line argument: 'C:\Users\DELL\Documents\Visual'.
Kornfeld Eliyahu Peter 30-Mar-14 14:52pm    
'C:\Users\DELL\Documents\Visual' - this path has no file on it!
It should be some thing like 'C:\Users\DELL\Documents\Visual\job.xsd'...
It's clearly a simple syntax error...You just have to provide the right path to the file!
amiach 30-Mar-14 14:54pm    
C:\Users\DELL\Documents\Visual Studio 2012\Projects\testXML\testXML\job.xsd this is my right path and I try it bit in vain
Kornfeld Eliyahu Peter 30-Mar-14 14:57pm    
As your path has spaces in it do not forget to enclose it in quotes...
amiach 30-Mar-14 15:32pm    
It works But an other error , the job.xsd is provided by the API of Monster
Error: Error generating classes for schema 'C:/job.xsd'.
- The element 'http://schemas.monster.com/Monster:RecruiterReference' is missing.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900