Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
# assert xml["animal"].length == 1
# assert xml["animal"].first["cat"].length == 2
# ~~~
# assert xml["animal"].length == 1
# assert xml["animal"].first["cat"].length == 2
# ~~~
- fun [](tag_name: String): Array[XMLEntity]
+ fun [](tag_name: String): Array[XMLTag]
- var res = new Array[XMLEntity]
+ var res = new Array[XMLTag]
for child in children do
if child isa XMLTag and child.tag_name == tag_name then
res.add child
for child in children do
if child isa XMLTag and child.tag_name == tag_name then
res.add child