473,473 Members | 2,357 Online
Bytes | Software Development & Data Engineering Community
Create 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.InvalidOperationException: There is an error in XML document (1, 40). --> System.InvalidOperationException: <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 2060
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
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...
4
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...
7
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? ...
6
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...
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...
0
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...
1
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...
0
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,...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
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.