473,587 Members | 2,263 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Deserialize XML Document Where XSD Schema uses "xs:include "

2 New Member
I have attached the XML and XSD files below after my description in a ZIP file, as well as the three XSD include files.

I am trying to deserialize the XML and get the error:

System.InvalidO perationExcepti on: There is an error in XML document (1, 40). --> System.InvalidO perationExcepti on: <CURRENT-TRMS xmlns=''> was not expected.

I have read other articles that lead me to believe this was a namespace issue, but I believe it has something to do with the "xs:include ". When the XSD does not use "included" content, and I remove the XML nodes that reference these "xs:include " elements, all works well.

However, both Altova XMLSpy and Visual Studio 2010 XML Schema Explorer have no complaints with "include".

Is it possible that the Deserialize method of the XmlSerializer class does not know how to handle "xs:include " ?

Any help is greatly appreciated.
Attached Files
File Type: zip Data.zip (3.3 KB, 68 views)
Oct 27 '11 #1
1 2078
Stuart Rivenbar
2 New Member
I have figured out the problem to this post. I was pointing to the wrong node. "xs:include " is handled correctly by Deserialize
Oct 27 '11 #2

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

Similar topics

3
2087
by: Y.S. | last post by:
Hello All, I have the following schema: .... <xs:element name="data_type_id" type="xs:unsignedShort" /> <xs:element name="data_value" type="xs:anyType" /> .... What I want to do is to specify that "If 'data_value' element exists, 'data_type_id' element MUST exist".
4
2282
by: bibsoconner | last post by:
Hi, I hope someone can please help me. I'm having a lot of trouble with schema files in .NET. I have produced a very simple example that uses "include" to include other schema files. It all works with SPY, but when I pick "Validate Schema" from the .NET 2003 menu, it fails with message: "Type XType is not declared." As I hinted at in...
7
1258
by: david.deridder | last post by:
Hi, I would like to specify in my XSD that the "Documentation" element can be added everywhere in the XML document. A bit like the xs:documentation node. How can i declare this in my XSD? An example <a>
6
2287
by: sejal17 | last post by:
hello everyone, I want to import only 3 field of the excel file into database.how can i do it? Also i don't want to insert the duplicate value of that field.Please reply me as soon as possible. thanks in advance......
0
8205
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8339
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7967
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6619
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5712
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5392
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3840
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3872
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.