mirror of
https://github.com/akpaevj/executor-scripts.git
synced 2024-11-28 09:33:50 +02:00
16 lines
313 B
Plaintext
16 lines
313 B
Plaintext
|
@Global
|
||
|
method GetValue(Reader: XmlReader, Path: String, Namespace: String = ""): String?
|
||
|
val PathParts = Path.Split(",")
|
||
|
|
||
|
for PathPart in PathParts
|
||
|
Reader.NextTo(PathPart.Trim(), Namespace)
|
||
|
;
|
||
|
|
||
|
Reader.Next()
|
||
|
|
||
|
if Reader.HasValue
|
||
|
return Reader.Value
|
||
|
;
|
||
|
|
||
|
return Undefined
|
||
|
;
|