Commit Graph

9 Commits

Author SHA1 Message Date
ionutboangiu
87044d7c9d Add comments for XmlProvider and xml_root_path opt 2023-10-16 13:31:14 +03:00
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
ionutboangiu
62619ba3a5 Replace interface{} with any 2023-06-05 10:55:32 +02:00
Trial97
8b81b6b8e4 Added *none ERs type. Closes #2201 2020-06-02 15:10:32 +02:00
Trial97
ab4944dc1a Removed config.NavigableMap 2020-05-18 12:43:13 +02:00
Trial97
2c53180ac8 Fixed agents unit tests 2020-05-07 11:19:03 +02:00
Trial97
9ef1dd05cc Updated AgentRequest 2020-05-07 11:19:03 +02:00
TeoV
f74df27ddd Remove pathPrfx from xmlDP 2020-01-23 10:56:30 +02:00
TeoV
4ea9cd3a48 Add XML to EventReader and test for it 2020-01-11 14:52:37 +02:00