ArrayOfType
See original GitHub issueHi,
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:
- Created 5 years ago
- Comments:33 (20 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Alright. That works! Thanks man! And now i can begin using this library 👍
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 😋