rsxml2json 0.1.1

A Rust library for converting XML to JSON format
Documentation
{
  "schema": {
    "complexType": [
      {
        "-name": "CustomerType",
        "attribute": {
          "-name": "CustomerID",
          "-type": "xs:token"
        },
        "sequence": {
          "element": [
            {
              "-name": "CompanyName",
              "-type": "xs:string"
            },
            {
              "-name": "ContactName",
              "-type": "xs:string"
            },
            {
              "-name": "ContactTitle",
              "-type": "xs:string"
            },
            {
              "-name": "Phone",
              "-type": "xs:string"
            },
            {
              "-minOccurs": "0",
              "-name": "Fax",
              "-type": "xs:string"
            },
            {
              "-name": "FullAddress",
              "-type": "AddressType"
            }
          ]
        }
      },
      {
        "-name": "AddressType",
        "attribute": {
          "-name": "CustomerID",
          "-type": "xs:token"
        },
        "sequence": {
          "element": [
            {
              "-name": "Address",
              "-type": "xs:string"
            },
            {
              "-name": "City",
              "-type": "xs:string"
            },
            {
              "-name": "Region",
              "-type": "xs:string"
            },
            {
              "-name": "PostalCode",
              "-type": "xs:string"
            },
            {
              "-name": "Country",
              "-type": "xs:string"
            }
          ]
        }
      },
      {
        "-name": "OrderType",
        "sequence": {
          "element": [
            {
              "-name": "CustomerID",
              "-type": "xs:token"
            },
            {
              "-name": "EmployeeID",
              "-type": "xs:token"
            },
            {
              "-name": "OrderDate",
              "-type": "xs:dateTime"
            },
            {
              "-name": "RequiredDate",
              "-type": "xs:dateTime"
            },
            {
              "-name": "ShipInfo",
              "-type": "ShipInfoType"
            }
          ]
        }
      },
      {
        "-name": "ShipInfoType",
        "attribute": {
          "-name": "ShippedDate",
          "-type": "xs:dateTime"
        },
        "sequence": {
          "element": [
            {
              "-name": "ShipVia",
              "-type": "xs:integer"
            },
            {
              "-name": "Freight",
              "-type": "xs:decimal"
            },
            {
              "-name": "ShipName",
              "-type": "xs:string"
            },
            {
              "-name": "ShipAddress",
              "-type": "xs:string"
            },
            {
              "-name": "ShipCity",
              "-type": "xs:string"
            },
            {
              "-name": "ShipRegion",
              "-type": "xs:string"
            },
            {
              "-name": "ShipPostalCode",
              "-type": "xs:string"
            },
            {
              "-name": "ShipCountry",
              "-type": "xs:string"
            }
          ]
        }
      }
    ],
    "element": {
      "-name": "Root",
      "complexType": {
        "sequence": {
          "element": [
            {
              "-name": "Customers",
              "complexType": {
                "sequence": {
                  "element": {
                    "-maxOccurs": "unbounded",
                    "-minOccurs": "0",
                    "-name": "Customer",
                    "-type": "CustomerType"
                  }
                }
              }
            },
            {
              "-name": "Orders",
              "complexType": {
                "sequence": {
                  "element": {
                    "-maxOccurs": "unbounded",
                    "-minOccurs": "0",
                    "-name": "Order",
                    "-type": "OrderType"
                  }
                }
              }
            }
          ]
        }
      },
      "key": {
        "-name": "CustomerIDKey",
        "field": {
          "-xpath": "@CustomerID"
        },
        "selector": {
          "-xpath": "Customers/Customer"
        }
      },
      "keyref": {
        "-name": "CustomerIDKeyRef",
        "-refer": "CustomerIDKey",
        "field": {
          "-xpath": "CustomerID"
        },
        "selector": {
          "-xpath": "Orders/Order"
        }
      }
    }
  }
}