ccc1b23f36f36df8fc5ca5490f86c1ec2d2a7fda
2 * Copyright (C) 2021 Jonathan Rajotte <jonathan.r.julien@gmail.com>
4 * SPDX-License-Identifier: GPL-2.0-only
9 * Prettyfi a xml input from stdin to stddout.
10 * This allows a more human friendly format for xml testing when problems occur.
13 #include <libxml/parser.h>
15 int main(int argc
, char **argv
)
21 xmlKeepBlanksDefault(0);
23 /* Parse the XML document from stdin. */
24 doc
= xmlParseFile("-");
26 fprintf(stderr
, "ERR parsing: xml input invalid");
30 xmlDocFormatDump(stdout
, doc
, 1);
33 /* Shutdown libxml. */
This page took 0.030353 seconds and 4 git commands to generate.