edit-xml 0.1.0

Read, modify and write xml in tree-like structure.
Documentation
{
  "standalone_version": null,
  "version": "1.0",
  "root_elements": [
    {
      "type": "Element",
      "value": {
        "name": "root",
        "attributes": {
          "attr": "value",
          "attr2": "hey"
        },
        "namespace_decls": {},
        "children": [
          {
            "type": "Element",
            "value": {
              "name": "self-closing",
              "attributes": {},
              "namespace_decls": {},
              "children": [],
              "is_root_element": false
            }
          },
          {
            "type": "Text",
            "value": "Text"
          },
          {
            "type": "Element",
            "value": {
              "name": "b",
              "attributes": {},
              "namespace_decls": {},
              "children": [
                {
                  "type": "Text",
                  "value": "Hello World!"
                }
              ],
              "is_root_element": false
            }
          },
          {
            "type": "Element",
            "value": {
              "name": "items",
              "attributes": {
                "id": "items"
              },
              "namespace_decls": {
                "ns": "a namespace",
                "": "def ns"
              },
              "children": [
                {
                  "type": "Element",
                  "value": {
                    "name": "item",
                    "attributes": {},
                    "namespace_decls": {},
                    "children": [
                      {
                        "type": "Text",
                        "value": "한국어"
                      }
                    ],
                    "is_root_element": false
                  }
                },
                {
                  "type": "Element",
                  "value": {
                    "name": "item",
                    "attributes": {
                      "ns:attr": "val"
                    },
                    "namespace_decls": {},
                    "children": [
                      {
                        "type": "Text",
                        "value": "日本語"
                      }
                    ],
                    "is_root_element": false
                  }
                },
                {
                  "type": "Element",
                  "value": {
                    "name": "item",
                    "attributes": {},
                    "namespace_decls": {},
                    "children": [
                      {
                        "type": "Text",
                        "value": ""
                      }
                    ],
                    "is_root_element": false
                  }
                }
              ],
              "is_root_element": false
            }
          }
        ],
        "is_root_element": true
      }
    }
  ]
}