1
0
mirror of https://github.com/akpaevj/executor-scripts.git synced 2025-07-02 05:24:32 +02:00
Files

17 lines
436 B
Plaintext
Raw Permalink Normal View History

2024-02-29 22:18:18 +03:00
@Global
2024-03-05 00:15:53 +03:00
method GetValue(FilePath: String, Path: String, Namespace: String = ""): String?
val Reader = new XmlReader(FilePath)
return GetValue(Reader, Path, Namespace)
;
2024-02-29 22:18:18 +03:00
2024-03-05 00:15:53 +03:00
@Global
method GetValue(Reader: XmlReader, Path: String, Namespace: String = ""): String?
Path.Split(",").ForEach(c -> Reader.NextTo(c.Trim(), Namespace))
2024-02-29 22:18:18 +03:00
Reader.Next()
if Reader.HasValue
return Reader.Value
;
return Undefined
;