Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 162
  • Last Modified:

schema xmlns='http //www.w3.org/2001/xmlschema' was not expected

Hi Experts,

      I am trying to create a C# class from an XSD using XSD.exe (VS2015) and I am getting the below error:

'schema xmlns='http //www.w3.org/2001/xmlschema' was not expected'

   Here's what I am using:

     xsd /classes /language:cs /out:C:\Classes /parameters:C:\ED_Address.xsd

Attached is the XSD.  Any help would be great!
ED_Address.xsd
0
axnst2
Asked:
axnst2
  • 2
1 Solution
 
axnst2Author Commented:
Is there anyone out there??
0
 
Daniel Van Der WerkenIndependent ConsultantCommented:
I downloaded your file and named it "testxsd.xsd" and ran this without any errors:

xsd testxsd.xsd /c

I got the following CS file
testxsd.cs
0
 
axnst2Author Commented:
I just had to change my command line arguments per your answer to:

xsd C:\ED_Address.xsd /classes /language:cs /out:C:\Classes

Thank you!!!!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now