Added operation: "XPath expression"

This commit is contained in:
Mike Schwörer 2016-11-29 19:28:07 +01:00
parent 09d515cbae
commit 51b627ab29
No known key found for this signature in database
GPG key ID: D3C7172E0A70F8CF
6 changed files with 6464 additions and 2 deletions

View file

@ -186,6 +186,7 @@ var Categories = [
"Extract file paths",
"Extract dates",
"Regular expression",
"XPath expression",
]
},
{

View file

@ -1893,6 +1893,24 @@ var OperationConfig = {
},
]
},
"XPath expression": {
description: "Extract information from an xml document with an XPath query",
run: Extract.run_xpath,
input_type: "string",
output_type: "string",
args: [
{
name: "XPath",
type: "string",
value: Extract.XPATH_INITIAL
},
{
name: "Result delimiter",
type: "binary_short_string",
value: Extract.XPATH_DELIMITER
}
]
},
"From UNIX Timestamp": {
description: "Converts a UNIX timestamp to a datetime string.<br><br>e.g. <code>978346800</code> becomes <code>Mon 1 January 2001 11:00:00 UTC</code>",
run: DateTime.run_from_unix_timestamp,