Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6057173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:27:33+00:00 2026-05-23T08:27:33+00:00

I have 2 XSD files. One XSD file lets say ABC.xsd contains the elements

  • 0

I have 2 XSD files.

One XSD file lets say ABC.xsd contains the elements which are part of XML.
The other XSD file lets say XYZ.xsd contains the definations of those elements.

Now in ABC.XSD(which holds the elements) schema tag along with other namespaces we have mentioned the schemalocation as well

<xs:schema schemaLocation="XYZ.xsd">

When I am executing xsd.exe to genereate my C# classes. It is generating classes but missing some definations from XYZ.xsd.

I am executing

xsd.exe "ABC.xsd" "XYZ.xsd" /c

Any help would be appreicate

EDIT 1:
@Felice, in my XYZ.xsd I have defination like this

<xs:simpleType name="contactNumberType">
        <xs:annotation>
            <xs:documentation>Contact phone or fax number with national or international format.  Only numbers are allowed</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:string">
            <xs:pattern value="\+?\p{N}{6,24}"/>
        </xs:restriction>
    </xs:simpleType>

See the pattern defined here, it is not appearing in the C# class. Any help. Sorry I am new to this .
Thanks your answer worked

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:27:33+00:00Added an answer on May 23, 2026 at 8:27 am

    Pass just the “main” xsd as a parameter, ensure the other is in the same location of the main, and it should work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an XSD file which contains the schema for my XML. The XSD
I have two xml files and I need to create one xsd for both.
I have one xsd file ,I used xmlpad to validate this xsd against xml
I have one xsd file I'd rather not modify (Exceptions.xsd): <xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema xmlns=http://me.com/Exceptions.xsd targetNamespace=http://me.com/Exceptions.xsd
We have an XSD file along with some java src files. How can we
I have a complex XSD schema and hundreds of XML files conforming to the
I have two XML files with two different XSD schemas and different namespaces. They
I have an XSD file which is used to generate some objects which are
I have an XML file that I used to create an XSD File and
I have two schema files one is imported from the other. When executing the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.