xmleam

Package Version Hex Docs

gleam add xmleam
import gleam/io
import gleam/result
import xmleam/builder.{Opt}

pub fn main() {
 let document = {
   builder.opts_cont_tag(
     "?xml",
     [Opt("version", "1.0"), Opt("encoding", "UTF-8")],
     { result.unwrap(builder.basic_tag("hello", "world"), "Encoding Error") },
   )
 }
 io.debug(document)
}

Further documentation can be found at https://hexdocs.pm/xmleam.

Development

gleam run   # Run the project
gleam test  # Run the tests
Search Document