<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>katze_7514</author_name>
  <author_url>https://blog.hatena.ne.jp/katze_7514/</author_url>
  <blog_title>GameProgrammar's Night</blog_title>
  <blog_url>https://katze.hatenablog.jp/</blog_url>
  <categories>
    <anon>boost </anon>
    <anon>C++</anon>
  </categories>
  <description>std::stringstreamを使う read_xml関数には、第一引数にstd::istreamを受け取るオーバーロード関数が用意されていますので、そっちを使います。文字列のstream実装にはstd::stringstreamがあります。(lexical_castのバックエンドで動いてるやつです) #include &lt;sstream&gt; std::stringstream ss; ss &lt;&lt; &quot;&lt;xml&gt;&lt;/xml&gt;&quot;; boost::property_tree::ptree pt; boost::property_tree::xml_parser::read_xml(ss, pt); …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkatze.hatenablog.jp%2Fentry%2F2013%2F06%2F26%2F194513&quot; title=&quot;Boost.Property TreeでXML文字列を直接使う方法 - GameProgrammar&amp;#39;s Night&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>2013-06-26 19:45:13</published>
  <title>Boost.Property TreeでXML文字列を直接使う方法</title>
  <type>rich</type>
  <url>https://katze.hatenablog.jp/entry/2013/06/26/194513</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
