Tim Wiederhake 9faa31ce79 util: Allow validation for single XML node
Validation is usually performed on an entire document. If we are only
interested in validating a single nested node that can occur in
different contexts, this would require writing different schemas for
any of those different contexts.

By temporarily replacing the document's root node, we can validate the
relevant node only.

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
2020-10-07 09:18:07 +02:00
..
2020-10-06 12:31:34 +02:00
2020-09-17 18:20:33 +02:00
2020-09-14 17:28:51 +02:00
2020-09-01 21:58:45 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-07-09 10:01:41 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:33 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-03-13 17:26:55 +01:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2019-10-16 12:06:44 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-02-24 23:15:49 +01:00
2020-10-06 12:31:34 +02:00
2020-02-24 17:25:07 +00:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-08-03 15:19:28 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-08-03 15:30:40 +02:00
2020-02-24 20:25:48 +01:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2019-12-17 10:04:43 +01:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:33 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2019-10-16 12:06:44 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:33 +02:00
2020-10-06 12:31:34 +02:00
2020-08-03 15:37:36 +02:00
2020-10-06 12:31:33 +02:00
2020-10-06 12:31:34 +02:00
2019-10-16 12:06:44 +02:00
2020-03-05 12:23:02 +00:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2019-10-16 12:06:44 +02:00
2020-10-06 12:31:34 +02:00