xmlb 1.0.0

XML but with brackets
Documentation
  • Coverage
  • 8.33%
    2 out of 24 items documented0 out of 14 items with examples
  • Size
  • Source code size: 16.12 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.68 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • 8BitKitKat/xmlb
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • tealsnow

XMLB

XML but with Brackets

What

<root>
  <foo1>Some text</foo1>
  <bar thing="4"/>

  <!-- Comment 1 -->
  <!-- Comment 2 -->

  <baz foo1="bar1" foo2="bar2" foo3="3">
    <foo2>
      Some more text

      <!--
        Multi
        Line
        Comment
      -->
    </foo2>
  </baz>
</root>

Becomes

<root> {
  <foo1> { Some text }
  <bar thing="4">

  // Comment 1
  // Comment 2

  <baz foo1="bar1" foo2="bar2" foo3="3"> {
    <foo2> {
      Some more text

      /*
        Multi
        Line
        Comment
      */
    }
  }
}

XML But with Brackets!

How

use xmlb::XMLBFile;

fn main() {
    let source: String = xmlb_source_code;

    let xmlb_file = XMLBFile::from_string(source);

    // Convert to xml
    let xml = xmlb_file.to_xml(true); // true or false to keep comments or not
}