xml-deserialization Questions

2

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:...
Communard asked 11/6, 2021 at 7:3

2

Previously, the serialization/deserialization methods used the type Item: public class Item{} Now I have a new class called ItemWrapper derived from Item with an additional property: public cla...
Rebbeccarebe asked 14/8, 2014 at 16:46

3

Solved

Consider the following XML: <a> <b>2</b> <c></c> </a> I need to deserialize this xml to an object. So, i wrote the following class. public class A { [Xm...
Kuching asked 12/3, 2012 at 18:51

20

Solved

I have a program that reads an XML document from a socket. I have the XML document stored in a string which I would like to convert directly to a Python dictionary, the same way it is done in Djang...
Mezzosoprano asked 27/1, 2010 at 15:28

3

Solved

I am looking for fast way to deserialize xml, that has special characters in it like ö. I was using XMLReader and it fails to deserialze such characters. Any suggestion? EDIT: I am using C#. C...
Jehoash asked 4/2, 2011 at 15:43

8

Solved

Given the following XML: <?xml version="1.0"?> <user_list> <user> <id>1</id> <name>Joe</name> </user> <user> <id>2</id> &lt...

4

Solved

I have an XML file that I deserialize, the funny part is the XML file is the was serialized using the following code: enter code here var serializer = new XmlSerializer(typeof(CommonMessage)); var...
Quasi asked 18/1, 2011 at 16:6

2

Solved

I'm trying to convert the result I get from my web service as a string and convert it to an object. This is the string I'm getting from my service: <StatusDocumentItem><DataUrl/><L...
Faience asked 1/2, 2013 at 12:8

8

I get this error after I created a class from my xsd file using the xsd.exe tool. So I searched the net and found a solution. Here is the link: http://satov.blogspot.com/2006/12/xsdexe-generated-cl...
Maggio asked 13/7, 2011 at 12:33

3

I'm trying to deserialize following xml to c# object: <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:topupResponse xmlns:ns2="http://www.claro.com.h...
Principalities asked 7/2, 2018 at 10:24

3

Solved

I've got an XML document which I need to convert (deserialize) into Java POJO. I cannot change the structure of the XML document. I use Java 8, and Jackson framework for mapping. Gradle dependencie...

16

Solved

How do I Deserialize this XML document: <?xml version="1.0" encoding="utf-8"?> <Cars> <Car> <StockNumber>1020</StockNumber> <Make>Nissan</Make> <Mo...
Boots asked 12/12, 2008 at 21:49

1

Solved

I am trying to deserialize the following XML <?xml version="1.0" encoding="UTF-8"?> <GovTalkMessage xmlns="http://www.govtalk.gov.uk/CM/envelope"> <EnvelopeVersion>2.0</Envel...
Abbacy asked 12/10, 2018 at 8:25

2

I am using retrofit2.0 in my app with simpleframework.xml library. The problem is when I run the app without proguard it works fine however when I run proguard I get the following Error in logs. ...

3

Solved

I am using asp.net (C#) website, I want to Deserialize the XML string using XmlSerializer class. My Model (.cs file) [XmlRoot("MedicalClearanceFormRoot")] public class MedicalClearanceViewModel...
Westbrooks asked 8/5, 2017 at 5:18

1

Solved

I'm having issues with Powershell 5 classes and object types when reimporting deserialized objects using the Import-CliXml command. I have an object of type Computer and I wish to store this as xm...

1

Solved

I have been asked to provide the following XML document from an http endpoint, exactly like:- <?xml version="1.0" encoding="utf-8"?> <XMLFile xmlns:xsd="http://www.w3.org/2001/XMLSchema...
Dugger asked 1/11, 2016 at 16:31

5

Solved

I'm trying to deserialize an XML string, where the value of an element, ain't within the scope of my Enum values. Public enum MyEnum { Unknown, Car, Bicycle, Boat } [SerializableAttribute()] ...
Koziel asked 7/3, 2014 at 8:57

1

Solved

I need to extract offers from an XML, but taking into consideration nodes order: <items> <offer/> <product> <offer/> <offer/> </product> <offer/> ...
Biddy asked 24/8, 2015 at 16:19

3

I have XML of unknown structure and I want to apply ST (Simple Transformation) on it to get "somehow" that content out of XML into ABAP structures. For now I have following test report: report zt...
Seaborne asked 8/5, 2013 at 15:30

1

I receive data from a server as utf-8 encoded xml messages that look like <?xml version="1.0" encoding="utf-8"?> <Data namespace="http://example.com/data"> ... </Data> The note...
Accentual asked 7/12, 2012 at 12:43

2

Solved

<StepList> <Step> <Name>Name1</Name> <Desc>Desc1</Desc> </Step> <Step> <Name>Name2</Name> <Desc>Desc2</Desc> &l...
Pathogenesis asked 9/5, 2012 at 14:41

3

Solved

I have a XML document provided by client applications to my C# application. This is how a client sends the XML file: <?xml version="1.0" encoding="utf-8"?> <SomeAccount> <parentId&...
Timbale asked 11/7, 2014 at 22:14

1

Solved

My consumed XML API has an option to retrieve only parts of the response. This causes the resulting object to have a lot of NULL properties if this feature is used. Is there a way to actually skip ...
Ypsilanti asked 5/4, 2016 at 14:45

5

Solved

In C#, how do I use an XmlSerializer to deserialize an object that might be of a base class, or of any of several derived classes without knowing the type beforehand? All of my derived classes add...

© 2022 - 2024 — McMap. All rights reserved.