Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
questions/45766597/c-deserialize-xml-with-xmlserializer-where-xmlelement-names-differ-but-have-sa by dbc_MinLength
Environment version: 4.0.30319.42000

Deserialized and re-serialized XML: 
<?xml version="1.0" encoding="utf-16"?>
<Objects xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://foo">
  <Group index="1">
    <Level>2</Level>
    <de Attribute="a">
      <GroupName>ANTRIEB</GroupName>
    </de>
    <en Attribute="b">
      <GroupName>missing translation!</GroupName>
    </en>
  </Group>
  <Group index="2">
    <Level>3</Level>
    <de Attribute="c">
      <GroupName>BREMSEN</GroupName>
    </de>
  </Group>
</Objects>
Cached Result
Last Run: 9:12:03 pm
Compile: 0.232s
Execute: 0.314s
Memory: 2.99Mb
CPU: 0.219s