# xmleam
[](https://hex.pm/packages/xmleam)
[](https://hexdocs.pm/xmleam/)
```sh
gleam add xmleam
```
```gleam
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
```sh
gleam run   # Run the project
gleam test  # Run the tests
```