talira

Compare

ErlsomSweetXmlSaxyXML Builder (Elixir)
What it isXML parser for Erlang: SAX parsing and XML Schema based data bindingQuery XML in Elixir with XPath sigilsFast streaming XML SAX parser and encoder for ElixirGenerate XML in Elixir from tuples and builder functions
KindOpen sourceOpen sourceOpen sourceOpen source
Trust0.310.390.400.36
Stars270377295187
Last commit2026-07-142026-08-172026-10-302026-08-21
LicenceLGPL-3.0-or-laterMITMITMIT
PricingFree and open sourceFree and open sourceFree and open sourceFree and open source
Free tierYesYesYesYes
Self-hostable————
Ways to run it————
SOC 2————
HIPAA————
SSO————
API————
Plugins————
MCP server————
CompanyWillem de JongKbrwCẩm HuỳnhJoshua Nussbaum
Features
  • SAX parser for documents of any size
  • simple DOM mode with Xmerl's simple form
  • XML Schema data binding to Erlang records, and back to XML
  • streaming input in blocks of any size
  • works directly on Latin-1, UTF-8 and UTF-16 binaries
  • query XML with XPath through the ~x sigil
  • map several XPath queries into nested Elixir maps with xmap
  • stream large XML files from File.stream! or element by element
  • Hex package sweet_xml
  • SAX parser with event handler callbacks
  • streaming parsing of large XML files
  • parse to a simple DOM-like form
  • XML encoder with a Builder protocol for structs
  • XML nodes as {name, attributes, content} tuples or document/element helper calls
  • Escapes content by default, with CDATA, safe and raw iodata opt-outs
  • Namespaces, DOCTYPE declarations, encoding and standalone declarations
  • Pretty-printed or compact output
  • generate_iodata for large documents without one big binary
Limitations
  • Some XML Schema constraints are accepted but not enforced while parsing: most simple types are read as strings, and key and unique constraints aren't supported
    • No XSD or DTD support: a DOCTYPE declaration is skipped.
    • Only UTF-8 encoded documents are supported.