✅ XML deserialization problem
Can anyone please help me sleep again.... 🙂
When deserializing the following XML to the respective object it doesn't deserialize anything after the empty nodes (eg:
ProcessingLog
).
note: if I remove the empty nodes OR move the ProcessingLog
node above the empty nodes it does get deserialized.
Any tips would be greatly appreciated15 Replies
$code
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
If your code is too long, post it to: https://paste.mod.gg/hmm sounds like a weird bug
you can probably need to replace nodes like
<MessageNumberCollection />
with <MessageNumberCollection></MessageNumberCollection>
using string.Replace
using regex may helpah thanks, I was already wondering how to do that
Hmmm okay... sounds like a dirty workaround 😄
That indeed works... but why ...
<Data />
should be the same as a separate open / closing tagprobably a bug
thanks for the tip
TheRanger
REPL Result: Success
Console Output
Compile: 614.765ms | Execution: 72.155ms | React with ❌ to remove this embed.
@joeystdio
deserializes perfect for me
thanks man! yes that works nicely
anyone can help me as well
it becomes null after that line
@Rain you should start your own thread
And provide further detail
at first glance you're not awaiting the async method call
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
Use the /close command to mark a forum thread as answered