2 .\" # Copyright (c) 2014, Juniper Networks, Inc.
3 .\" # All rights reserved.
4 .\" # This SOFTWARE is licensed under the LICENSE provided in the
5 .\" # ../Copyright file. By downloading, installing, copying, or
6 .\" # using the SOFTWARE, you agree to be bound by the terms of that
8 .\" # Phil Shafer, July 2014
15 .Nd emit formatted output based on format string and arguments
21 .Fn xo_set_style "xo_handle_t *handle" "unsigned style"
23 .Fn xo_set_style_name "xo_handle_t *handle" "const char *style"
27 function to set the output style for a handle.
28 To use the default handle, pass a
31 The set of output styles used by
34 .Bl -column "XO_STYLE_TEXT12"
35 .It Sy "Flag Description"
36 .It "XO_STYLE_TEXT Traditional text output"
37 .It "XO_STYLE_XML XML encoded data"
38 .It "XO_STYLE_JSON JSON encoded data"
39 .It "XO_STYLE_HTML HTML encoded data"
44 function can be used to set the style based on a name
46 The name can be any of the styles: "text", "xml", "json", or "html".
47 .Bd -literal -offset indent
49 xo_set_style_name(NULL, "html");
51 .Sh ADDITIONAL DOCUMENTATION
52 Complete documentation can be found on github:
53 .Bd -literal -offset indent
54 http://juniper.github.io/libxo/libxo-manual.html
59 .Bd -literal -offset indent
60 https://github.com/Juniper/libxo
66 .Bd -literal -offset indent
67 https://github.com/Juniper/libxo/releases