xo_set_version(3)

xo_set_version3

Record content-version information in encoded output

Usage

#include <libxo/xo.h>

void

xo_set_version(const char *version);

void

xo_set_version_h(xo_handle_t *xop, const char *version);

Library

library “libxo”

Overview

The xo_set_version function records a version number to be emitted as part of the data for encoding styles (XML and JSON). This version number is suitable for tracking changes in the content, allowing a user of the data to discern which version of the data model is in use.

Releases

25 releases since FreeBSD 11.0-RELEASE; the text changed 1 time.

  1. 11.0–11.1
  2. 11.2–16.0

History

The libxo library first appeared in FreeBSD 11.0.

Authors

libxo was written by Phil Shafer ⟨[email protected]⟩.

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.