Solved

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

Posted on 2016-11-21
3
76 Views
Last Modified: 2016-11-21
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
Comment
Question by:axnst2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

by:axnst2
ID: 41896437
Is there anyone out there??
0
 
LVL 20

Accepted Solution

by:
Daniel Van Der Werken earned 500 total points
ID: 41896543
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
 

Author Closing Comment

by:axnst2
ID: 41896637
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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question