Files
ionutboangiu dd82bb3c4b Add sanity check to prevent xml reader panic
HierarchyPath parser now returns nil when
the path is empty (instead of a string slice with one
EmptyString element).

If the prefix is set to true, when calling the AsString
method on a nil HierarchyPath, only the separator will
be returned. This avoids a nil expr error coming from
the xmlquery library.

Use the Query and QueryAll functions from the xmlquery
package to be able to handle the errors ourselves and
avoid panics.

Added an integration tes for the special case where the
xml_root_path field is left empty. Before the change it
used to trim the root element from the path slice when
attempting to retrieve a the relative path slice.
2023-10-16 13:31:14 +03:00
..
2020-01-29 18:16:51 +01:00
2020-01-30 10:21:48 +01:00
2020-01-29 18:16:51 +01:00
2023-06-21 11:02:39 +02:00
2023-06-21 11:02:39 +02:00
2023-06-21 11:02:39 +02:00
2020-03-09 16:51:46 +01:00
2020-02-08 12:17:46 +01:00
2020-02-08 12:17:46 +01:00
2020-02-08 12:17:46 +01:00
2020-02-08 12:17:46 +01:00
2020-02-08 12:17:46 +01:00
2020-01-29 18:16:51 +01:00
2020-01-30 10:21:48 +01:00
2020-01-30 10:21:48 +01:00
2023-04-20 20:05:00 +02:00
2023-04-20 20:05:00 +02:00
2023-04-20 20:05:00 +02:00
2020-01-30 10:21:48 +01:00
2020-01-30 10:21:48 +01:00
2020-01-30 10:21:48 +01:00
2019-03-15 15:37:55 +01:00
2020-01-30 10:21:48 +01:00
2020-01-30 10:21:48 +01:00
2019-03-15 15:37:55 +01:00