xmlrat is an Erlang library for parsing and manipulating XML documents. It's particularly designed for use in parsing untrusted inputs in a server context (e.g. the original use-case is accepting and processing SAML assertions).
It provides:xmlrat_parse
)xmlrat_xpath
)parse_transform
allowing compiling XPath
expressions and XSLT-style templates to pure Erlang code
(xmlrat_parse_transform
)xmlrat_c14n
)xmlrat_dsig
)Being a fully compliant XML library with a complete implementation of all specs is a non-goal: features which are inherently dangerous in the context of parsing untrusted input from the Internet are generally not included.
The library is written in pure Erlang and is designed to deal primarily with binaries for all data.
This differentiates it from the built-in xmerl
parser, which
converts tags and namespace names and other XML components to atoms (allowing
untrusted input to crash the VM when the atom table is full), and from various
NIF bindings to libxml
.
Generated by EDoc