Questions tagged [xml-deserialization]

XML Deserialization is the process of re-creating an in-memory object from its serialized state which used XML as a data format.

1004 questions
-1
votes
1 answer

Understanding the significance of root element in xml deserialization

I have XML like the following: . . . I can deserialize the xml using: public class feed { public ProductList products { get; set;…
rethabile
  • 3,029
  • 6
  • 34
  • 68
-1
votes
1 answer

Facing issue with deserializing the xml to object

I am having xml string as follows "
-1
votes
2 answers

Deserialize and get xml having 2 attributes with different ID

I want to Deserialize and get values of 2 attributes with different ID. Sala 305
Saim Sajid
  • 19
  • 5
-1
votes
1 answer

What role plays constructor in xmlserialize class?

I have been trying to deserialize xml file while ago and had some problem that the serializer cannot find root element. Then I created constructor and everything works fine. Can anyone explain me please why is this happening? Thanks in advance.
-1
votes
1 answer

xsd.exe generated XML deserializer returns null

I have an XSD that I used with xsd.exe to generate an XML deserializer. However, at runtime, it does not deserialize the Bar or Timer definitions. The relevant parts of the XSD are as follows:
tayoung
  • 411
  • 1
  • 4
  • 16
-1
votes
2 answers

During C# deserialization, getting System.InvalidOperationException: < xmlns=''> was not expected

I'm new to XMLdeserialization. I used xsd.exe to generate object classes for performing a deserialization on an existing XML file. When I run my solution below, I get the error System.InvalidOperationException: < xmlns=''> was not expected on…
-1
votes
1 answer

There is an error in XML document

I am getting the following exception when I am trying to deserialize the xml document. Xml document has a tag as url in which google search link may present. Google search link contains '=' which is not accepted in the xml document while…
Fresher
  • 493
  • 6
  • 18
-1
votes
1 answer

Xml children not deserializing

public class MenuNavigationItem { public int Code { get; set; } public string Name { get; set; } public int Parent { get; set; } public int No { get; set; } public int ParentCode { get; set; } public string Level { get;…
toddmo
  • 20,682
  • 14
  • 97
  • 107
-1
votes
1 answer

Can we do CRUD operation on XML using serialization and Deserialization

I have this query, can we do CRUD operation on XML using Serialization and Deserialization (using system.xml.serialization library ) I know it can be done using other libraries like xmldocument,XMLWriter but just curious to know whether is there any…
Snziv Gupta
  • 1,016
  • 1
  • 10
  • 21
-1
votes
2 answers

Deserialize nested xml only

Suppose I have xml like this: User1 User2 I want to deserialize only the users node. Here is what I'm doing. XmlSerializer serializer…
Andrej Kovalksy
  • 225
  • 1
  • 3
  • 13
-1
votes
1 answer

Issue with XML Generating from C# Object

I am trying to generate an XML file from an Object. I put a break point before generating the XML file, so I can check the values. The object and its value look fine. However, after the XML file is generated, it is missing a key component, the…
user3802347
  • 108
  • 1
  • 10
-1
votes
1 answer

How to deserialize nested structure with XmlSerializer

I have a xml in a string form. Let's say string . max_amount Millions Combo
Sss
  • 1,519
  • 8
  • 37
  • 67
-1
votes
1 answer

Deserialize xml with new lines and Escape characters C#

I am invoking a service that returns responses as xml format. The response doesnt follow the xml guidelines and contains some new lines and "\". Due to the formatting issues, the deserialization is failing. XML Format: \r\n\r\n
Hussein Zawawi
  • 2,907
  • 2
  • 26
  • 44
-1
votes
1 answer

xaml parse exception occurs in Visual studio on deserialization of xml to create object

I am working on c# using silverlight-5 in VS2012 and trying to derialize. My code to do this is as follows : Filename is `attribute.cs` using System; using System.Net; using System.Windows; using System.Windows.Controls; using…
Sss
  • 1,519
  • 8
  • 37
  • 67
-1
votes
1 answer

VB deserialise DataSet from C# XML

The following Code throws an XML deserialisation error (20,2) and i don't know why. Is there somethign special with XmlSerialiser to know for deserialisation of DataSets? Dim strStringReader As StringReader = New StringReader(strValue) Dim oXS As…
MadMaxAPP
  • 1,035
  • 2
  • 16
  • 39
1 2 3
66
67