1
0
mirror of https://github.com/akpaevj/executor-scripts.git synced 2024-11-28 09:33:50 +02:00
akpaevj-executor-scripts/Common/Xml.sbsl

16 lines
313 B
Plaintext
Raw Normal View History

2024-02-29 21:18:18 +02:00
@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
;