github fioncat/otree v0.5.2

latest releases: v0.6.1, v0.6.0
11 days ago

Features

Add new XML parser!

XML will be parsed in the same way as yq.

In short:

  • If an XML element contains attributes, they will be represented in the tree as String items, with their keys prefixed by "@" for distinction.
  • If an XML element has attributes, then even if its value is a string, it will be expanded into an object. The element's text value will be stored in a special field called "#text".

For example:

<outer attr="value">
  <inner>1</inner>
  <inner attr="value">2</inner>
  <inner>3</inner>
</outer>

Will be parsed as:

{
  "outer": {
    "inner": [
      "1",
      {
        "@property": "value",
        "#text": "2"
      },
      "3"
    ]
  },
  "@property": "value"
}

What's Changed

  • build(deps): bump the all group across 1 directory with 4 updates by @dependabot[bot] in #91
  • feat(parse): support xml by @fioncat in #92

Full Changelog: v0.5.1...v0.5.2

Don't miss a new otree release

NewReleases is sending notifications on new releases.