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
5
votes
1 answer

Deserializing recursive XML using Serde in Rust

I'm trying to deserialize MathML using Serde and Quick-XML in Rust. I'm having trouble trying to write the structs because of the recursive nature of MathML. Here's a minimal, reproducible example: use quick_xml; use…
Pranav Ballaney
  • 185
  • 1
  • 6
  • 13
5
votes
4 answers

Best way to deserialize this XML into an object

In other examples I've seen that are similar to mine, there is a root node, then an array node, and then a bunch of array items. My problem is, my root node is my array node, so examples I've seen don't seem to work for me, and I can't change the…
Samo
  • 8,202
  • 13
  • 58
  • 95
5
votes
2 answers

How can I deserialize an XML, when I only know the type of an ancestor class?

Let's assume I want to deserialize this (I've removed the namespaces to make things simpler): Location Location TextField inherits from FormField, so in my class definition of FormField…
Stephen Oberauer
  • 5,237
  • 6
  • 53
  • 75
5
votes
4 answers

Xml Serialization in C#

I'm trying to follow a microsoft tutorial about XML serialization, but I getting some problems!! This is XML file, used as input:
muek
  • 1,080
  • 2
  • 16
  • 36
5
votes
2 answers

Best way to parse xml in Appengine with Python

I am connecting to isbndb.com for book information and their response looks like this:
jcuenod
  • 55,835
  • 14
  • 65
  • 102
5
votes
0 answers

How to deserialize soap response with multiref in .net?

I am making a .net wcf client for java ws. But when I make a request, and response contains fault, it also contains multiRef section. So I get this exception: Server returned an invalid SOAP Fault. End element 'Body' from namespace…
ozembuch
  • 51
  • 3
5
votes
3 answers
5
votes
1 answer

Ignoring null references when de-serializing a massive XML document

I'm getting a massive payload of XML from my WCF service, and I need to write it into a SQL database. I'm using the latest version of .NET and Entity Framework 6. "Okay, that's great," you may say, "but what's the question?" Well, the XML is being…
Ellis
  • 173
  • 13
5
votes
1 answer

Deserialization not filling data - C#

I am trying to deserialize an XML . Sample XML is given below 25429 02700701354375000964
makdu
  • 908
  • 2
  • 13
  • 26
5
votes
3 answers
5
votes
1 answer

XML Deserialization in VB/VBA

I have a set of VBA classes in an MS Access database. I have an xml string with data I want to create new classes with. Other than setting each property individually, is there an easy way to deserialize the XML into my object? I've seen the code…
oharab
  • 4,405
  • 3
  • 19
  • 15
5
votes
2 answers

SQL Cursor throws out of memory while calling getString

Attachment Reference to my earlier question :- Out of memory I would try to be as precise as possible. I am getting a response from my web-service call a long base64 string. I decode the string and get a huge string which contains my data. I…
Android
  • 3,828
  • 9
  • 46
  • 79
5
votes
1 answer

Unexpected node type Element

I have the following XML: TRUE 9876543210 12345-67890-b9e6bcd68d4fb511170ab3fcff55179d Which…
Robert
  • 5,278
  • 43
  • 65
  • 115
5
votes
1 answer

SimpleXML, org.simpleframework.xml.core.PersistenceException

After a lot of frustration I have come here for help. I am using org.simpleframework.xml to parse RSS feeds in Android. I get the following error when I try to parse the xml file: org.simpleframework.xml.core.PersistenceException: Element 'link' is…
Wouter
  • 291
  • 4
  • 12
5
votes
1 answer

C# XML string element with Name attribute

I am trying to create a c# object for serialization/deserialization with a string property. The property needs to generate an element and also have an attribute: eg: ... ... If the property is a string, I cant…
Mark Redman
  • 24,079
  • 20
  • 92
  • 147