XML Deserialization is the process of re-creating an in-memory object from its serialized state which used XML as a data format.
0
votes
1answer
20 views
Deserializing SQL varbinary in form of XML to C# byte[]
I'm working on a small proof of concept project, in which the client sends an image file in a byte[] format and the server inserts the data to the database in Image column, which is VarBinary(MAX). ...
-2
votes
1answer
39 views
xml serialisation best practices
I have been using the traditional way of serializing content with the following code
private void SaveToXml(IdentifiableEntity IE)
{
try
{
XmlSerializer serializer = new ...
3
votes
3answers
65 views
Can't Deserialize XML
I am trying to deserialize the following XML:
<?xml version="1.0" encoding="UTF-8"?>
<jobInfo
xmlns="http://www.force.com/2009/06/asyncapi/dataload">
...
0
votes
1answer
31 views
XML serializer returns null on object deserialization
I have a stored procedure in the database which returns an XML stream, and the application deserializes that stream into its corresponding object. The stored procedure is defined like this (I ...
-1
votes
2answers
55 views
Create a XML Serialization and Deserialization for generic list in C# windows form application?
I tried code like this.....
//Serialization
private void Serialize_Click(object sender, EventArgs e)
{
List<Personal> pdetails = new List<Personal>();
...
5
votes
3answers
41 views
C# Changing the element names of items in a list when serializing/deserializing XML
I have a class defined as below:
[XmlRoot("ClassName")]
public class ClassName_0
{
//stuff...
}
I then create a list of ClassName_0 like such:
var myListInstance= new ...
0
votes
1answer
33 views
XMLSerialization doesn't set properties on de-serialization
I have a weird behavior, which I don't even know how to diagnose.
Some properties during de-serialization are not set (null), even though I clearly see them in the (just-produced) XML document. The ...
0
votes
1answer
23 views
XmlSerialization with a singleton
Serialization woes continue...
I'm trying to serialize a class, instances of which share between them common objects (a binder of sorts). So, objects A, B, C share object Binder1, and objects D and ...
0
votes
3answers
53 views
XmlSerializer with dependencies results in Null reference exception
I'm running into an issue with Xml serialization of my own class. It is a derived class, which doesn't naturally have a parameterless constructor - I had to add one just for the sake of serialization. ...
0
votes
1answer
33 views
deserialise nested xml via json.net
I seem to have problems to deserialize this xml:
<Parameters>
<AParameters>
</AParameters>
<BParameters>
</BParameters>
...
0
votes
3answers
42 views
How to deserialize an XML file to its own unique class?
I have an XML file which contains an array of Vehicles but I need to be able to deserialize it and take each object and put it in its own Vehicle.
For example this is what my XML file kinda looks ...
1
vote
1answer
55 views
Deserialization error when attribute is bool
I'm trying to deserialize a xml into a class but it's giving me an exception.
My class is something like that:
public class FieldsVO
{
public bool AllowPrint { get; set; }
...
2
votes
2answers
54 views
Deserialize XML string not working
I have this XML string
<Root>
<Row>
<ITEMNO>1</ITEMNO>
<PARTSOURCE>Buy</PARTSOURCE>
<QTY>2</QTY>
...
1
vote
3answers
86 views
XML deserialization crashes on decimal parse due to formatting
I get a System.FormatException thrown when i try to parse XML into an object. As far as I can tell, it's due to the culture used in System.Xml.Serialization.XmlSerializer.Deserialize, wich expects a ...
1
vote
1answer
65 views
Deserialize xml element to POCO base class
Following this link: Deserialize xml into super class object with C#
I had implemented:
xml file
<?xml version="1.0" encoding="utf-8" ?>
<xPlugins>
<xPlugin>
...