textproc/libxmlb - The NetBSD Packages Collection

Library to help create and query binary XML blobs

XML is slow to parse and strings inside the document cannot be memory mapped as
they do not have a trailing NUL char. The libxmlb library takes XML source, and
converts it to a structured binary representation with a deduplicated string
table -- where the strings have the NULs included.

This allows an application to mmap the binary XML file, do an XPath query and
return some strings without actually parsing the entire document. This is all
done using (almost) zero allocations and no actual copying of the binary data.

As each node in the binary XML file encodes the 'next' node at the same level
it makes skipping whole subtrees trivial. A 10Mb binary XML file can be loaded
from disk *and* queried in less than a few milliseconds.

Build dependencies

textproc/gtk-doc devel/glib2-tools devel/meson pkgtools/mktools devel/pkgconf pkgtools/cwrappers

Runtime dependencies

archivers/zstd devel/glib2 devel/gobject-introspection devel/glib2 devel/gobject-introspection

Binary packages

OSArchitectureVersion
NetBSD 10.0aarch64libxmlb-0.3.14.tgz
NetBSD 10.0aarch64libxmlb-0.3.14.tgz
NetBSD 10.0aarch64eblibxmlb-0.3.14.tgz
NetBSD 10.0aarch64eblibxmlb-0.3.14.tgz
NetBSD 10.0alphalibxmlb-0.3.14.tgz
NetBSD 10.0alphalibxmlb-0.3.14.tgz
NetBSD 10.0earmv4libxmlb-0.3.14.tgz
NetBSD 10.0earmv6hflibxmlb-0.3.14.tgz
NetBSD 10.0earmv6hflibxmlb-0.3.14.tgz
NetBSD 10.0earmv7hflibxmlb-0.3.14.tgz
NetBSD 10.0earmv7hflibxmlb-0.3.14.tgz
NetBSD 10.0i386libxmlb-0.3.14.tgz
NetBSD 10.0i386libxmlb-0.3.14.tgz
NetBSD 10.0sparclibxmlb-0.3.14.tgz
NetBSD 10.0x86_64libxmlb-0.3.14.tgz
NetBSD 10.0x86_64libxmlb-0.3.14.tgz
NetBSD 8.0x86_64libxmlb-0.3.14.tgz
NetBSD 9.0aarch64libxmlb-0.3.14.tgz
NetBSD 9.0aarch64libxmlb-0.3.14.tgz
NetBSD 9.0alphalibxmlb-0.3.14.tgz
NetBSD 9.0alphalibxmlb-0.3.14.tgz
NetBSD 9.0earmv6hflibxmlb-0.3.14.tgz
NetBSD 9.0earmv6hflibxmlb-0.3.14.tgz
NetBSD 9.0earmv7hflibxmlb-0.3.14.tgz
NetBSD 9.0earmv7hflibxmlb-0.3.14.tgz
NetBSD 9.0i386libxmlb-0.3.14.tgz
NetBSD 9.0i386libxmlb-0.3.14.tgz
NetBSD 9.0powerpclibxmlb-0.3.14.tgz
NetBSD 9.0x86_64libxmlb-0.3.14.tgz
NetBSD 9.0x86_64libxmlb-0.3.14.tgz
NetBSD 9.3x86_64libxmlb-0.3.14.tgz

Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.

Available build options

(none)

Known vulnerabilities

The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.

Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.


Problem reports, updates or suggestions for this package should be reported with send-pr.