Pold
Pold
CC#
Created by Pold on 6/9/2023 in #help
❔ Help deserializing XML file
Thanks for the help, haven't really got it to work. I was trying to work around it by defining LMEEvenFecResponse as an array of 1 element, where LMEEvenFecReturn is a derived class. Something like it appears in the documentation: https://learn.microsoft.com/en-us/dotnet/standard/serialization/controlling-xml-serialization-using-attributes#serializing-derived-classes I hope I get it to work like that... still no success tho, that type having a namespace kinda bothers me, however didn't have much time today to try.
121 replies
CC#
Created by Pold on 6/9/2023 in #help
❔ Help deserializing XML file
I guess you wanted me to use the utility you posted above
121 replies
CC#
Created by Pold on 6/9/2023 in #help
❔ Help deserializing XML file
It's a private company, they serve this api service for all their clients, the thing is, it's access restricted tho, I have that xml example, but can't really test it on realtime
121 replies
CC#
Created by Pold on 6/9/2023 in #help
❔ Help deserializing XML file
121 replies
CC#
Created by Pold on 6/9/2023 in #help
❔ Help deserializing XML file
Paste XML as Classes doesn't work on this part, and when deserializing LMEEvenFecReturn it throws an error
121 replies
CC#
Created by Pold on 6/9/2023 in #help
❔ Help deserializing XML file
121 replies
CC#
Created by Pold on 6/9/2023 in #help
❔ Help deserializing XML file
It seems I needed to specify Form = System.Xml.Schema.XmlSchemaForm.Qualified and now it is not null. Thanks a lot, that tool helped me find that problem. Its not perfect tho, now it throws another problem. Gotta check that out and ill post here again (maybe later/tomorrow)
121 replies
CC#
Created by Pold on 6/9/2023 in #help
❔ Help deserializing XML file
Im not familiar with the concept, what do you mean?
121 replies
CC#
Created by Pold on 6/9/2023 in #help
❔ Help deserializing XML file
Adding the namespace back, it goes back to null
121 replies
CC#
Created by Pold on 6/9/2023 in #help
❔ Help deserializing XML file
121 replies
CC#
Created by Pold on 6/9/2023 in #help
❔ Help deserializing XML file
My bad, I didn't correctly change the example.xml file. since the code was running. It worked now (without namespace)
121 replies
CC#
Created by Pold on 6/9/2023 in #help
❔ Help deserializing XML file
yeah, thanks for the help. Much appreciated... this new finding can give me some room to test some new things.... there are way more examples of xml deserialization when the attribute has no namespace, maybe I can make it work, then I go back to try it with namespace
121 replies
CC#
Created by Pold on 6/9/2023 in #help
❔ Help deserializing XML file
I assumed it would work.
121 replies
CC#
Created by Pold on 6/9/2023 in #help
❔ Help deserializing XML file
now, THAT makes no sense
121 replies
CC#
Created by Pold on 6/9/2023 in #help
❔ Help deserializing XML file
121 replies
CC#
Created by Pold on 6/9/2023 in #help
❔ Help deserializing XML file
121 replies
CC#
Created by Pold on 6/9/2023 in #help
❔ Help deserializing XML file
121 replies
CC#
Created by Pold on 6/9/2023 in #help
❔ Help deserializing XML file
it actually didnt work 😦
121 replies
CC#
Created by Pold on 6/9/2023 in #help
❔ Help deserializing XML file
ill try tho, second
121 replies
CC#
Created by Pold on 6/9/2023 in #help
❔ Help deserializing XML file
that wouldn't make much sense, I can't edit that file, since it comes from an API 😦
121 replies