18 lines
288 B
Text
18 lines
288 B
Text
|
# Simple example for using the xml-parser.
|
||
|
#
|
||
|
# File:
|
||
|
# testcases/multisensor.xml
|
||
|
#
|
||
|
# Expected Output:
|
||
|
# xml,gateway=Main seqnr=12i,ok=true
|
||
|
#
|
||
|
|
||
|
[tags]
|
||
|
gateway = "substring-before(/Gateway/Name, ' ')"
|
||
|
|
||
|
[fields_int]
|
||
|
seqnr = "/Gateway/Sequence"
|
||
|
|
||
|
[fields]
|
||
|
ok = "/Gateway/Status = 'ok'"
|