XML Deserialization is the process of re-creating an in-memory object from its serialized state which used XML as a data format.
Questions tagged [xml-deserialization]
1004 questions
4
votes
2 answers
How to deserialize this nested xml in c# objects
I am using silverlight ot achieve deserialisation of xml which looks like this:
String xmlString=
1
yes
…

Sss
- 1,519
- 8
- 37
- 67
4
votes
1 answer
Input string was not of the correct format
I'm trying to deserialize and XML file that is validated to an XSD. But the thing is that one of the nodes can be empty from time to time so I came up with this XSD now

Nicolas Pierre
- 1,174
- 1
- 21
- 39
4
votes
3 answers
XStream: How do I map xml mixed attributes and elements to POJOs?
This must be a newbie question, but I could not get it from http://x-stream.github.io/.
Well, I have the following xml string
Garfield
which needs to be mapped to:
class Cat {
int age;
String name;
}
Is…

anonymous
- 181
- 3
- 6
4
votes
2 answers
Decoding string using HtmlDecode or Escape
EDIT - Modified based on the answer:
okay here is what I modified based on the answer:
here is the string.
"November is Fruit's Fresh."
here is what I'm doing:
static string EscapeCharacters(string txt)
{
string encodedTxt =…

Nick Kahn
- 19,652
- 91
- 275
- 406
4
votes
1 answer
Deserializing with SimpleXML
EDIT: Removed previous edit
I'm trying to deserialize the following:
1
1376881200
2013-08-19
...
…

CJe
- 1,928
- 3
- 24
- 53
4
votes
1 answer
How do I read attributes using jaxb?
Given this XML:
This is what I have now, but it is not working (I'm getting empty result):
@XmlRootElement(name="response")
public class MyResponse {
…

stackular
- 1,431
- 1
- 19
- 41
4
votes
2 answers
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 simplified it to make it more readable):
SELECT
…

Arian Motamedi
- 7,123
- 10
- 42
- 82
4
votes
2 answers
XML Parsing and deserialization
I have a xml file which Im reading it from my class
new SomeClass1()
new SomeClass2()
so i have a method in the class which takes an argument as an object as below
public List

iuser
- 209
- 1
- 6
- 18
4
votes
2 answers
Generic XML Deserialization into Undefined Objects
I have a very long, very varied XML file that I am attempting to store portions of into a database. Now, I do not want to go through and hand-write 10,000 different objects to store the deserialized data into. Is there any way to define an Object…

Adenverd
- 478
- 1
- 6
- 13
4
votes
2 answers
Deserialization of xml with simplexml in java
I'm trying to deserialize an xml string with SimpleXML, i've looked at their examples but i'm not really sure that wether i grasp the concept or not.
Sample XML (validates):

karl
- 173
- 3
- 8
4
votes
2 answers
XML Deserializing "Element was not expected" error
I know this has been asked before, but I checked the other threads and none were of help to me. I am trying to deserialize an xml to an object and am getting the error:
"
was…

Meyer Denney
- 796
- 1
- 11
- 34
3
votes
3 answers
XML deserialization C# array
I want to import questions for quiz which are in XML file. There are list of questions in XML, and every questions have a list of answers. Can someone help me and tell me where I´m wrong?
XML file "pitanja.xml":

Zoran Đukić
- 767
- 1
- 6
- 12
3
votes
2 answers
C# XML list deserialization; no exception thrown, but no objects deserialized
I'm trying to deserialize XML into C# objects. When I run my code, no exceptions are thrown, but my resulting object is empty. I'm kind of out of ideas for debugging.
My serialization domain…

RustyTheBoyRobot
- 5,891
- 4
- 36
- 55
3
votes
3 answers
How to Deserialize xml to an array of objects?
I am tryind to deserialize a xml file into an object[] - the object is a rectangle with the following fields
public class Rectangle : IXmlSerializable
{
public string Id { get; set; }
public Point TopLeft { get; set; }
public Point…

Chen Biran
- 31
- 1
- 1
- 3
3
votes
1 answer
Jackson XML deserialize Sub-Nodes as Plain String
I have an XML Sttructure and want to Deserialize this to an Object with a Property Description as a Plain HTML-String
-
This is a HTML Description
…

Moritz Großmann
- 51
- 5