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 6332041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:11:14+00:00 2026-05-24T18:11:14+00:00

I have a bunch of XSD’s from https://github.com/XeroAPI/XeroAPI-Schemas/tree/master/v2.00 I need to do two things:

  • 0

I have a bunch of XSD’s from https://github.com/XeroAPI/XeroAPI-Schemas/tree/master/v2.00

I need to do two things:

  1. Create tables for each type, my first one is for Contact in Contact.xsd.
  2. When the table is populated then I need to get the XML back out of the table so it can be sent as a REST request.

I can’t get past item 1 🙁

I’ve marked all these XSD’s as embedded resources in my .net C# project

I’m then using reflection to load the XSD using the DataSet.ReadXmlSchema(ContactXsdStream) but this XSD references types specified in BaseTypes.xsd and it throws an error “Undefined complexType ‘DataContractBase’ is used as a base for complex type extension”.

var assembly = Assembly.GetExecutingAssembly();
var dataset = new DataSet();
var manifestResourceStream = assembly.GetManifestResourceStream(schemaName);
if (manifestResourceStream == null)
  throw new FileNotFoundException(string.Format("Unable to find schema resource {0}", schemaName));

using (var textStreamReader = new StreamReader(manifestResourceStream))
{
  dataset.ReadXmlSchema(textStreamReader);
  textStreamReader.Close();
}
return dataset;

All help is appreciated

Additional Considerations

I understand that there is not a contact complex type does not directly map to as a single table, however I may need to embed the complex types such as Address as an XML string in the data table.

The reason I need simple types is that the DataTables are passed to a Data Synchronisation API (Simego DataSync Studio). This sync tool allows me to two way sync to CRM, SharePoint, Excel and other datasource. I will use other sync frameworks if more appropriate any other recommendations welcome.

Kind regards
Si

  • 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-24T18:11:14+00:00Added an answer on May 24, 2026 at 6:11 pm

    When your Xsd is including other Xsd files, the files have to exist in the proper location(s) on your disk.

    Even when you get the main xsd out of a resource and pass it to ReadXmlSchema as a stream or simple string, the included schemas have to exists as files in the specified location relative to your current working directory.

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

Sidebar

Related Questions

I have a XML file and a a bunch of XSD files with schemas.
i have bunch of rows containing http://www.domainname.com i need to update those so http://
Have a bunch of classes which I need to do serialize and deserialize from/to
I have a bunch of files that I need to be able to transport
I have bunch of html and I need to get all the anchors and
I have bunch of objects that return a DOM-tree that I then use to
I have bunch of methods in which i need to test whether remote server
I have bunch pages and I need to validate data there. If culture for
I have bunch of images from dozen or so sources and I am downloading
I have bunch of action-methods that need to verify the ownership of the orderId

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.