From f26084acf1202f5c186595bc34dade3ece92881b Mon Sep 17 00:00:00 2001 From: Samantha Wang <32681364+sjwang90@users.noreply.github.com> Date: Thu, 25 Mar 2021 13:15:33 -0700 Subject: [PATCH] add xpath testers to xml readme (#9049) * add xpath testers to xml readme * fix linking --- plugins/parsers/xml/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/parsers/xml/README.md b/plugins/parsers/xml/README.md index 93b150703c1bc..02b3c4530ecb6 100644 --- a/plugins/parsers/xml/README.md +++ b/plugins/parsers/xml/README.md @@ -53,7 +53,8 @@ that need to be specified in a `fields_int` section. ``` A configuration can contain muliple *xml* subsections for e.g. the file plugin to process the xml-string multiple times. -Consult the [XPath syntax][xpath] and the [underlying library's functions][xpath lib] for details and help regarding XPath queries. +Consult the [XPath syntax][xpath] and the [underlying library's functions][xpath lib] for details and help regarding XPath queries. Consider using an XPath tester such as [xpather.com][xpather] or [Code Beautify's XPath Tester][xpath tester] for help developing and debugging +your query. Alternatively to the configuration above, fields can also be specified in a batch way. So contrary to specify the fields in a section, you can define a `name` and a `value` selector used to determine the name and value of the fields in the @@ -341,5 +342,7 @@ For each selected *field-node* we use `field_name` and `field_value` to determin [xpath lib]: https://github.com/antchfx/xpath [xml]: https://www.w3.org/XML/ [xpath]: https://www.w3.org/TR/xpath/ +[xpather]: http://xpather.com/ +[xpath tester]: https://codebeautify.org/Xpath-Tester [time const]: https://golang.org/pkg/time/#pkg-constants [time parse]: https://golang.org/pkg/time/#Parse