{"id":618,"date":"2023-10-07T15:58:31","date_gmt":"2022-07-20T07:51:36","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/python%e3%81%a7xml%e3%82%92json%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%a8%e3%80%81xml%e3%82%92%e8%be%9e%e6%9b%b8%e5%bd%a2%e5%bc%8f%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99\/"},"modified":"2025-08-01T01:07:11","modified_gmt":"2025-07-31T16:07:11","slug":"python%e3%81%a7xml%e3%82%92json%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%a8%e3%80%81xml%e3%82%92%e8%be%9e%e6%9b%b8%e5%bd%a2%e5%bc%8f%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7xml%e3%82%92json%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%a8%e3%80%81xml%e3%82%92%e8%be%9e%e6%9b%b8%e5%bd%a2%e5%bc%8f%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99\/","title":{"rendered":"Python\u3067XML\u3092JSON\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3068\u3001XML\u3092\u8f9e\u66f8\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3002"},"content":{"rendered":"<p>\u4eca\u65e5\u306fPython\u3067XML\u3092JSON\u3084\u8f9e\u66f8\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3059\u3002Python\u306exmltodict\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3063\u3066XML\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u3001\u8f9e\u66f8\u307e\u305f\u306fJSON\u30c7\u30fc\u30bf\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u5927\u304d\u306aXML\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3057\u3066\u3082\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u3067\u51e6\u7406\u3057\u3001\u8f9e\u66f8\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u524d\u306b\u3001XML\u5909\u63db\u304c\u306a\u305c\u5fc5\u8981\u306a\u306e\u304b\u3092\u7406\u89e3\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>XML\u3092\u8f9e\u66f8\/JSON\u306b\u5909\u63db\u3059\u308b<\/h2>\n<p>XML\u30d5\u30a1\u30a4\u30eb\u306f\u5f90\u3005\u306b\u6642\u4ee3\u9045\u308c\u306b\u306a\u3063\u3066\u304d\u3066\u3044\u307e\u3059\u304c\u3001\u307e\u3060\u3053\u306e\u5f62\u5f0f\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5927\u898f\u6a21\u306a\u30a6\u30a7\u30d6\u30b7\u30b9\u30c6\u30e0\u3082\u3042\u308a\u307e\u3059\u3002XML\u306fJSON\u3088\u308a\u3082\u91cd\u304f\u3001\u305d\u306e\u305f\u3081\u3001\u307b\u3068\u3093\u3069\u306e\u958b\u767a\u8005\u306f\u81ea\u5206\u305f\u3061\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u5f8c\u8005\u3092\u597d\u3093\u3067\u4f7f\u7528\u3057\u307e\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u3069\u306e\u30bd\u30fc\u30b9\u306b\u3088\u3063\u3066\u63d0\u4f9b\u3055\u308c\u305fXML\u3092\u7406\u89e3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u3001\u305d\u308c\u3092JSON\u306b\u5909\u63db\u3059\u308b\u4f5c\u696d\u306f\u624b\u9593\u304c\u304b\u304b\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002Python\u306exmltodict\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u3053\u306e\u4f5c\u696d\u3092\u975e\u5e38\u306b\u7c21\u5358\u304b\u3064\u76f4\u611f\u7684\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>xmltodict\u3092\u4f7f\u3044\u59cb\u3081\u308b<\/h2>\n<p>\u6700\u521d\u306bxmltodict\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u59cb\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u307e\u305a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u8981\u3067\u3059\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u4e3b\u306bpip\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<h3>xmltodict\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/h3>\n<p>Python Package Index (pip)\u3092\u4f7f\u7528\u3057\u3066\u3001xmltodict\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3092\u4ee5\u4e0b\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>pip install xmltodict\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656491f4daa94e2bdf7be87e\/8-0.png\" alt=\"python install xmltodict module\" \/><\/div>\n<pre class=\"post-pre\"><code>sudo apt install python-xmltodict\r\n<\/code><\/pre>\n<p>\u3082\u3046\u4e00\u3064\u306e\u30d7\u30e9\u30b9\u30dd\u30a4\u30f3\u30c8\u306f\u3001\u3053\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u516c\u5f0f\u306eDebian\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<h3>Python\u306eXML\u3092JSON\u306b\u5909\u63db\u3059\u308b<\/h3>\n<p>\u3053\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8a66\u3059\u6700\u9069\u306a\u5834\u6240\u306f\u3001\u4e3b\u306b\u884c\u308f\u308c\u308b\u3079\u304d\u64cd\u4f5c\u3067\u3042\u308bXML\u304b\u3089JSON\u3078\u306e\u5909\u63db\u3092\u884c\u3046\u3053\u3068\u3067\u3059\u3002\u3053\u308c\u3092\u884c\u3046\u305f\u3081\u306e\u30b3\u30fc\u30c9\u30b9\u30cb\u30da\u30c3\u30c8\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>import xmltodict\r\nimport pprint\r\nimport json\r\n\r\nmy_xml = \"\"\"\r\n    &lt;audience&gt;\r\n      &lt;id what=\"attribute\"&gt;123&lt;\/id&gt;\r\n      &lt;name&gt;Shubham&lt;\/name&gt;\r\n    &lt;\/audience&gt;\r\n\"\"\"\r\n\r\npp = pprint.PrettyPrinter(indent=4)\r\npp.pprint(json.dumps(xmltodict.parse(my_xml)))\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656491f4daa94e2bdf7be87e\/14-0.png\" alt=\"python xml to json\" \/><\/div>\n<h3>XML\u30d5\u30a1\u30a4\u30eb\u3092JSON\u306b\u5909\u63db\u3059\u308b<\/h3>\n<p>XML\u30c7\u30fc\u30bf\u3092\u30b3\u30fc\u30c9\u81ea\u4f53\u306b\u4fdd\u6301\u3059\u308b\u3053\u3068\u306f\u3001\u5e38\u306b\u53ef\u80fd\u3067\u3082\u73fe\u5b9f\u7684\u3067\u3082\u3042\u308a\u307e\u305b\u3093\u3002\u901a\u5e38\u3001\u30c7\u30fc\u30bf\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u307e\u305f\u306f\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u6301\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u76f4\u63a5\u9078\u629e\u3057\u3001JSON\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002XML\u30d5\u30a1\u30a4\u30eb\u3067\u306e\u5909\u63db\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3001\u30b3\u30fc\u30c9\u306e\u65ad\u7247\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>import xmltodict\r\nimport pprint\r\nimport json\r\n\r\nwith open('person.xml') as fd:\r\n    doc = xmltodict.parse(fd.read())\r\n\r\npp = pprint.PrettyPrinter(indent=4)\r\npp.pprint(json.dumps(doc))\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656491f4daa94e2bdf7be87e\/18-0.png\" alt=\"python xml file to json\" \/><\/div>\n<h3>Python\u306eXML\u3092Dict\u306b\u5909\u63db<\/h3>\n<p>\u30e2\u30b8\u30e5\u30fc\u30eb\u540d\u305d\u306e\u3082\u306e\u304c\u793a\u3059\u3088\u3046\u306b\u3001xmltodict\u306f\u63d0\u4f9b\u3057\u305fXML\u30c7\u30fc\u30bf\u3092\u5358\u7d14\u306aPython\u306e\u8f9e\u66f8\u306b\u5909\u63db\u3057\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u8f9e\u66f8\u306e\u30ad\u30fc\u3092\u4f7f\u7528\u3057\u3066\u30c7\u30fc\u30bf\u306b\u7c21\u5358\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>import xmltodict\r\nimport pprint\r\nimport json\r\n\r\nmy_xml = \"\"\"\r\n    &lt;audience&gt;\r\n      &lt;id what=\"attribute\"&gt;123&lt;\/id&gt;\r\n      &lt;name&gt;Shubham&lt;\/name&gt;\r\n    &lt;\/audience&gt;\r\n\"\"\"\r\nmy_dict = xmltodict.parse(my_xml)\r\nprint(my_dict['audience']['id'])\r\nprint(my_dict['audience']['id']['@what'])\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656491f4daa94e2bdf7be87e\/22-0.png\" alt=\"python xml to dict\" \/><\/div>\n<h3>XML\u3067\u30cd\u30fc\u30e0\u30b9\u30da\u30fc\u30b9\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b<\/h3>\n<p>\u901a\u5e38\u3001XML\u30c7\u30fc\u30bf\u306b\u306fXML\u30d5\u30a1\u30a4\u30eb\u3067\u63d0\u4f9b\u3055\u308c\u308b\u30c7\u30fc\u30bf\u306e\u7bc4\u56f2\u3092\u5b9a\u7fa9\u3059\u308b\u4e00\u9023\u306e\u540d\u524d\u7a7a\u9593\u304c\u3042\u308a\u307e\u3059\u3002JSON\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u969b\u306b\u306f\u3001\u3053\u308c\u3089\u306e\u540d\u524d\u7a7a\u9593\u304cJSON\u5f62\u5f0f\u3067\u3082\u4fdd\u6301\u3055\u308c\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30ebXML\u30d5\u30a1\u30a4\u30eb\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;root xmlns=\"https:\/\/defaultns.com\/\"\r\n        xmlns:a=\"https:\/\/a.com\/\"&gt;\r\n    &lt;audience&gt;\r\n        &lt;id what=\"attribute\"&gt;123&lt;\/id&gt;\r\n        &lt;name&gt;Shubham&lt;\/name&gt;\r\n    &lt;\/audience&gt;\r\n&lt;\/root&gt;\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306f\u3001JSON\u5f62\u5f0f\u3067\u3082XML\u540d\u524d\u7a7a\u9593\u3092\u542b\u3081\u308b\u65b9\u6cd5\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>import xmltodict\r\nimport pprint\r\nimport json\r\n\r\nwith open('person.xml') as fd:\r\n    doc = xmltodict.parse(fd.read(), process_namespaces=True)\r\n\r\npp = pprint.PrettyPrinter(indent=4)\r\npp.pprint(json.dumps(doc))\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656491f4daa94e2bdf7be87e\/28-0.png\" alt=\"xml namespace to dict and json\" \/><\/div>\n<h3>JSON\u3092XML\u306b\u5909\u63db<\/h3>\n<p>XML\u3092JSON\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u304c\u3053\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u4e3b\u306a\u76ee\u7684\u3067\u3059\u304c\u3001xmltodict\u306fJSON\u3092XML\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u9006\u306e\u64cd\u4f5c\u3082\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u30d7\u30ed\u30b0\u30e9\u30e0\u81ea\u4f53\u306bJSON\u30c7\u30fc\u30bf\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306b\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>import xmltodict\r\n\r\nstudent = {\r\n  \"data\" : {\r\n    \"name\" : \"Shubham\",\r\n    \"marks\" : {\r\n      \"math\" : 92,\r\n      \"english\" : 99\r\n    },\r\n    \"id\" : \"s387hs3\"\r\n  }\r\n}\r\n\r\nprint(xmltodict.unparse(student, pretty=True))\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656491f4daa94e2bdf7be87e\/32-0.png\" alt=\"python json to xml\" \/><\/div>\n<pre class=\"post-pre\"><code>import xmltodict\r\n\r\nstudent = {\r\n    \"name\" : \"Shubham\",\r\n    \"marks\" : {\r\n        \"math\" : 92,\r\n        \"english\" : 99\r\n    },\r\n    \"id\" : \"s387hs3\"\r\n}\r\n\r\nprint(xmltodict.unparse(student, pretty=True))\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656491f4daa94e2bdf7be87e\/34-0.png\" alt=\"python json to xml unparse error\" \/><\/div>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u3053\u306e\u30ec\u30c3\u30b9\u30f3\u3067\u306f\u3001XML\u3092JSON\u306b\u5909\u63db\u3057\u305f\u308a\u3001\u305d\u306e\u9006\u3092\u884c\u3046\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u308b\u512a\u308c\u305fPython\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u3064\u3044\u3066\u5b66\u3073\u307e\u3057\u305f\u3002\u307e\u305f\u3001xmltodict\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066XML\u3092\u8f9e\u66f8\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3082\u5b66\u3073\u307e\u3057\u305f\u3002\u53c2\u8003\u8cc7\u6599\uff1aAPI\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u65e5\u306fPython\u3067XML\u3092JSON\u3084\u8f9e\u66f8\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3059\u3002Python\u306exmltodict\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3063\u3066XML\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u3001\u8f9e\u66f8\u307e\u305f\u306fJSON\u30c7\u30fc\u30bf\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u5927\u304d\u306aXML\u30d5\u30a1\u30a4\u30eb [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[31,26],"class_list":["post-618","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-python","tag-26"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python\u3067XML\u3092JSON\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3068\u3001XML\u3092\u8f9e\u66f8\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3002 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Python\u3067XML\u3092JSON\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3068XML\u3092\u8f9e\u66f8\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/python\u3067xml\u3092json\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3068\u3001xml\u3092\u8f9e\u66f8\u5f62\u5f0f\u306b\u5909\u63db\u3059\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python\u3067XML\u3092JSON\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3068\u3001XML\u3092\u8f9e\u66f8\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3002\" \/>\n<meta property=\"og:description\" content=\"Python\u3067XML\u3092JSON\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3068XML\u3092\u8f9e\u66f8\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/python\u3067xml\u3092json\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3068\u3001xml\u3092\u8f9e\u66f8\u5f62\u5f0f\u306b\u5909\u63db\u3059\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-20T07:51:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T16:07:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656491f4daa94e2bdf7be87e\/8-0.png\" \/>\n<meta name=\"author\" content=\"\u82bd\u4f9d, \u96e8\u591c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u82bd\u4f9d, \u96e8\u591c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"9\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7xml%e3%82%92json%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%a8%e3%80%81xml%e3%82%92%e8%be%9e%e6%9b%b8%e5%bd%a2%e5%bc%8f%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7xml%e3%82%92json%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%a8%e3%80%81xml%e3%82%92%e8%be%9e%e6%9b%b8%e5%bd%a2%e5%bc%8f%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99\/\",\"name\":\"Python\u3067XML\u3092JSON\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3068\u3001XML\u3092\u8f9e\u66f8\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3002 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2022-07-20T07:51:36+00:00\",\"dateModified\":\"2025-07-31T16:07:11+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27\"},\"description\":\"Python\u3067XML\u3092JSON\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3068XML\u3092\u8f9e\u66f8\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7xml%e3%82%92json%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%a8%e3%80%81xml%e3%82%92%e8%be%9e%e6%9b%b8%e5%bd%a2%e5%bc%8f%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7xml%e3%82%92json%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%a8%e3%80%81xml%e3%82%92%e8%be%9e%e6%9b%b8%e5%bd%a2%e5%bc%8f%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7xml%e3%82%92json%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%a8%e3%80%81xml%e3%82%92%e8%be%9e%e6%9b%b8%e5%bd%a2%e5%bc%8f%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\u3067XML\u3092JSON\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3068\u3001XML\u3092\u8f9e\u66f8\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3002\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27\",\"name\":\"\u82bd\u4f9d, \u96e8\u591c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g\",\"caption\":\"\u82bd\u4f9d, \u96e8\u591c\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/meiamaya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7xml%e3%82%92json%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%a8%e3%80%81xml%e3%82%92%e8%be%9e%e6%9b%b8%e5%bd%a2%e5%bc%8f%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Python\u3067XML\u3092JSON\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3068\u3001XML\u3092\u8f9e\u66f8\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3002 - Blog - Silicon Cloud","description":"Python\u3067XML\u3092JSON\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3068XML\u3092\u8f9e\u66f8\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/python\u3067xml\u3092json\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3068\u3001xml\u3092\u8f9e\u66f8\u5f62\u5f0f\u306b\u5909\u63db\u3059\/","og_locale":"ja_JP","og_type":"article","og_title":"Python\u3067XML\u3092JSON\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3068\u3001XML\u3092\u8f9e\u66f8\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3002","og_description":"Python\u3067XML\u3092JSON\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3068XML\u3092\u8f9e\u66f8\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/python\u3067xml\u3092json\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3068\u3001xml\u3092\u8f9e\u66f8\u5f62\u5f0f\u306b\u5909\u63db\u3059\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-07-20T07:51:36+00:00","article_modified_time":"2025-07-31T16:07:11+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656491f4daa94e2bdf7be87e\/8-0.png"}],"author":"\u82bd\u4f9d, \u96e8\u591c","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u82bd\u4f9d, \u96e8\u591c","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"9\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7xml%e3%82%92json%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%a8%e3%80%81xml%e3%82%92%e8%be%9e%e6%9b%b8%e5%bd%a2%e5%bc%8f%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7xml%e3%82%92json%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%a8%e3%80%81xml%e3%82%92%e8%be%9e%e6%9b%b8%e5%bd%a2%e5%bc%8f%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99\/","name":"Python\u3067XML\u3092JSON\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3068\u3001XML\u3092\u8f9e\u66f8\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3002 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2022-07-20T07:51:36+00:00","dateModified":"2025-07-31T16:07:11+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27"},"description":"Python\u3067XML\u3092JSON\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3068XML\u3092\u8f9e\u66f8\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7xml%e3%82%92json%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%a8%e3%80%81xml%e3%82%92%e8%be%9e%e6%9b%b8%e5%bd%a2%e5%bc%8f%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7xml%e3%82%92json%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%a8%e3%80%81xml%e3%82%92%e8%be%9e%e6%9b%b8%e5%bd%a2%e5%bc%8f%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7xml%e3%82%92json%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%a8%e3%80%81xml%e3%82%92%e8%be%9e%e6%9b%b8%e5%bd%a2%e5%bc%8f%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Python\u3067XML\u3092JSON\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3068\u3001XML\u3092\u8f9e\u66f8\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3002"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27","name":"\u82bd\u4f9d, \u96e8\u591c","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g","caption":"\u82bd\u4f9d, \u96e8\u591c"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/meiamaya\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7xml%e3%82%92json%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%81%a8%e3%80%81xml%e3%82%92%e8%be%9e%e6%9b%b8%e5%bd%a2%e5%bc%8f%e3%81%ab%e5%a4%89%e6%8f%9b%e3%81%99\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/618","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=618"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/618\/revisions"}],"predecessor-version":[{"id":42883,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/618\/revisions\/42883"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=618"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=618"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}