473,394 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

unable to read schema elements when a xsd has other xsd imports

I have this code snippet

XmlSchemaSet schemaSet = new XmlSchemaSet() ;
schemaSet.ValidationEventHandler += new ValidationEventHandler(validationHandler);
schemaSet.Add(schema);
schemaSet.Compile();

when i printed "schema.Elements.Count" it gives me the parent xsd elements count Only but not the count of xsd imported elements that used "xsd:import" in parent xsd.

the parent Org.xsd file has something like

<xsd:import namespace="http://www.emp.com/Employee" schemaLocation="Employee.xsd"/>

the elements in Employee.xsd are not counted but only the elements in Org.xsd are counted.

My question
1) Is the schemaSet class not able to resolve the imported xsds ?
2) do I need to add code that resolves all the imported xsds and counts the no. of elements in it ?
Feb 16 '15 #1
0 1036

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Greg | last post by:
I'm trying to read an xsd into a DataSet to generate the SQL db that I will import the data into. I get a couple errors (one of which make sense) but am not sure how to work around them I'm using...
0
by: ALI-R | last post by:
When I open an ASP.NET project using VS2003 IDE ,,there is no "XML schema tab when I open an ASP.NET project" there? How can I add it there? Thanks for your help
0
by: athos | last post by:
Hi guys, please help. What I did is : Step1. create a Database named , it's default owner is Step2. create a User in Database named , which maps to the Login on this Database Server, it's a...
3
by: athos | last post by:
Hi guys, please help. What I did is : Step1. create a Database named , it's default owner is Step2. create a User in Database named , which maps to the Login on this Database Server, it's a...
1
by: jasonchan | last post by:
How do you align <ol> and <ul> elements when they are contained in a floated box? Here is my website: http://geocities.com/jasonchan483/ Here's my problem. The markers of the lists are...
0
by: basith7861 | last post by:
im unable to see images when im testing my asp.net applcaition on workgroup
0
by: =?Utf-8?B?c3FsZXh0cmVtZQ==?= | last post by:
Hi Asp.net has some problem to read schema colletion of Sql Server 2005 or can read it as a xml normal? Thank Cristián
1
by: Ingo Siebert | last post by:
Hi, is it possible to have more than one schema in one file defined? Is something like the code below possible? <xsd:schemas> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" ... >...
1
by: Rahul | last post by:
I am getting following error: 1) For a xml file "Request.xml" we created a schema "Request.xsd". 2) With the help of xsd.exe we got the C# file Request.cs. 3) We tried to send the object of...
1
by: FadeOut | last post by:
Hi everyone, I'm trying to make an application who sends querys to a tcp server who will then send an answer containing "rows" of commas separated values as an answer. I'm pretty new to tcp...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.