Deserialization is the process by which an object is recreated from its serialized state.
Questions tagged [deserialization]
7954 questions
3
votes
2 answers
How to force XML deserialization to derived types of the same name?
I have types provided in a library I cant modify, such as this:
namespace BaseNamespace
{
public class A
{
public string Foo { get; set; }
}
}
I also have a class named SomeOtherNamespace.A" that derives from BaseNamespace.A…

Chris Johnson
- 1,230
- 7
- 15
3
votes
0 answers
Serializing & Deserializing a Struct Array
In the following bit of code, I am observing that the marshaler is reading past the 3 byte source array to populate another 8 bytes of data. With time, the code eventually throws a memory access violation. Is there a way to tell the marshaller to…

Owen Funkhouser
- 31
- 4
3
votes
1 answer
Making @XmlTransient annotation just for serializing?
I use Spring and Apache CXF for my project that implements java Web Services with first-code style.
I have a variable as defined:
@XmlTransient
public String word;
So that variable doesn't map to an attribute at XML.
However I want it to be ignored…

kamaci
- 72,915
- 69
- 228
- 366
3
votes
1 answer
Creating MTOM and Deserializing it
I have been using some code to create MTOM by using code from MSDN.
It seems that there is an error and I cannot understand where the problem lies as one of the users on the forum pointed out that there is an error.
The file (JPEG) data get…
user349026
3
votes
1 answer
JSON.net Deserializing
I have a string which is JSON encoded. I'm also having C# class:
class Pupu{
public static List plist = new List();
public string user {get; set;}
public string number {get;…

ewooycom
- 2,651
- 5
- 30
- 52
3
votes
2 answers
Deserialize XML with HTML Tags
I'm wondering for a solution to deserialise the values of HTML in a XML Element.
My Sample XML is given below,
I want this "This is a sample XML Tag" as string.…
This is a sample XML Tag

dotnet_Profiler
- 55
- 4
3
votes
3 answers
php how to represent a multilevel array in a string form
This is an example of a mixed, multi-level, irregular array in php:
$settings['style_formats'] = array(
array('title' => 'Center table', 'selector' => 'table', 'styles' => array('margin-left' => 'auto', 'margin-right' => 'auto')),
array('title'…

camcam
- 2,585
- 8
- 49
- 65
3
votes
1 answer
Cannot access child value on Newtonsoft.Json.Linq.JProperty
I am trying to parse the json values from the following stream:
{"id": "tag:search.xxxxx.com,2005:xxxxxxxxxxx"}
{"body": "acordei (:"}
{"verb": "post"}
{"link": "http://xxxxx.com/rohanaf_/xxxxxxxxxx/xxxxxxxxx"}
{"generator": {
"link":…

vbNewbie
- 3,291
- 15
- 71
- 155
2
votes
1 answer
HttpContent.ReadAsAsync Deserialization issue
I have a small REST service that I am running via the HttpSelfHostServer (ASP.Net WebApi Beta), but have am having some problems deserializing some data that is posted to the server. The method signature is as follows:
public HttpResponseMessage…

BBoy
- 1,063
- 1
- 10
- 21
2
votes
1 answer
How is object of serialized class created dynamically without calling the constructor when de-serialization in java?
How is object of serialized class created dynamically without calling the constructor when de-serialization in java?
What is the mechanism used by the JVM to create the object instance?

Jyotirup
- 2,882
- 9
- 30
- 38
2
votes
1 answer
Deserializing polymorphic classes using Simple XML
I need to deserialize xml which is result of polymorphic classes.
Below are 2 examples.
Example 1:
TYPE1
fdfdf
dfdfdf
Example 2:
TYPE2
…

Tushar
- 1,607
- 1
- 16
- 27
2
votes
1 answer
Using XmlSerializer to deserialize complex type elements with choice
I receive a XML that I'm having problem to deserialize, I cant make a class that fits the XML's schema.
XML Schema (every type name beginning with "ts" is SimpleType):
…

LazyLeecher
- 45
- 9
2
votes
2 answers
Using polymorphism at deserialization time with Jackson (and MrBean)
I'm using Jackson to deserialize some JSON into Java POJOs. I register the MrBean module with my object mapper, so all I have to do is define a bunch of interfaces, and the POJOs are generated automagically, based on those interfaces.
I would like…

cww
- 1,128
- 1
- 8
- 15
2
votes
1 answer
Element error encountered while deserializing an XML stream
I'm trying to deserialize an XML stream and getting the following error:
Error in line 1 position 7. Expecting element 'auth' from namespace 'http://schemas.datacontract.org/2004/07/Veracross'.. Encountered 'Element' with name 'auth', namespace ''.…

BKahuna
- 601
- 2
- 11
- 23
2
votes
4 answers
How to deserialize xml to object with inheritance?
I have the following xml which represents 2 types of plugins, FilePlugin and RegsitryPlugin:
i am a file plugin
c:\
…

user829174
- 6,132
- 24
- 75
- 125