question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi,

I want to deserialize a List. This is my xml structure

<?xml version="1.0" encoding="UTF-8"?>
<ArrayOfTravelFile>
     <TravelFile>
           ....
     </TravelFile>
</ArrayOfTravelFile>

My class is named TravelFile And i try to deserialize like this.

var serializer = new ConfigurationContainer().Create();
var a = serializer.Deserialize<List<TravelFile>>((xml));

I tried different approaches, including implementing a custom serializer how ever, i keep running against the same error. System.InvalidOperationException: 'An attempt was made to load a type with the fully qualified name of 'ArrayOfTravelFile', but no type could be located with that name.' Note : I have no problems deserializing with the standard xmlserializer. I want to use this framework so i can my classes more pocco and have issues with badly formatted datetimes and floats/doubles. The xml data is provided by a third party.

Thank you for your help and advice

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:33 (20 by maintainers)

github_iconTop GitHub Comments

1reaction
jonassixcommented, Sep 21, 2018

Alright. That works! Thanks man! And now i can begin using this library 👍

1reaction
jonassixcommented, Sep 20, 2018

you will see stuff like XmlStringDateOfBirth, that is to be able to handle badly formed datetimes. One of the reasons i want to use this project 😋

Read more comments on GitHub >

github_iconTop Results From Across the Web

Array Types
Array types represent lists of unknown length, where all items have the same type. This is in contrast to tuple types, which have...
Read more >
React: Complex prop-types (oneOf, shape, arrayOfType) ...
React: Complex prop-types (oneOf, shape, arrayOfType) should be supported · Relates to 1 issue (1 unresolved) · Is duplicated by 2 issues (0...
Read more >
wsdl2java generating ArrayOf<Type> instead of Type
Some attributes were repeated, so wsdl2java read it as an array. The correct wsdl is: <xsd:complexType name="TService"> <xsd:sequence> ...
Read more >
ArrayOfType Problem
I am trying to use CXF and Metro which are implementation of JAX-WS and use the JAXB framework for binding. I my WDSL...
Read more >
Again beta17 breaks my project. Trying to assign an array ...
Trying to assign an array of type "Array" to a variable of type "Array[GdUnitReport]". needs to be changed to var reports :Array[GdUnitReport] = ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found