<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sharemysalt</author_name>
  <author_url>https://blog.hatena.ne.jp/sharemysalt/</author_url>
  <blog_title>やっと起きたエンジニアのメモ</blog_title>
  <blog_url>https://sharemysalt.hatenadiary.org/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>Memo</anon>
  </categories>
  <description>とあるバグの調査中に気づいたこと、、今更感もあるけどメモしておくXMLのデシリアライズ時に、要素の空白が削除されていることに気づいた。空白をデータとして扱いたいのに、削除されているとは、、Σ(ﾟДﾟ|||)例えば、区切り文字を要素として格納する場合、区切り文字を空白として指定すると 下記のコードではデシリアライズで空白が削除される。 XmlSerializer serializer = new XmlSerializer(typeof(Delimiter)); Stream reader= new FileStream(filename,FileMode.Open); Delimiter de…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsharemysalt.hatenadiary.org%2Fentry%2F20120225%2F1330177548&quot; title=&quot;XmlSerializerのデシリアライズで空白が削除されないようにする - やっと起きたエンジニアのメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-02-25 22:45:48</published>
  <title>XmlSerializerのデシリアライズで空白が削除されないようにする</title>
  <type>rich</type>
  <url>https://sharemysalt.hatenadiary.org/entry/20120225/1330177548</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
