Extensible Markup Builder

Package Version Hex Docs

A tiny XML builder for Gleam.

import xmb.{text, x}
import gleam/io
import gleam/string_builder

pub fn main() {
  x("greeting", [], [text("Hello, Joe!")])
  |> xmb.render
  |> string_builder.to_string
  |> io.println
}
<?xml version=\"1.0\" encoding=\"UTF-8\"?><greeting>Hello, Joe!</greeting>

This package doesn’t do much. If you’d like more features, check out these alternatives:

Installation

gleam add xmb

The documentation can be found at https://hexdocs.pm/xmb.

Search Document