diff --git a/src/nodes.jl b/src/nodes.jl index 6e7f8e4..0de4466 100644 --- a/src/nodes.jl +++ b/src/nodes.jl @@ -283,6 +283,14 @@ function find_element(x::XMLElement, n::AbstractString) return nothing end +function find_all_elements(x::XMLElement, n::AbstractString) + matched = [] + for c in child_elements(x) + name(c) == n && push!(matched, c) + end + return matched +end + function get_elements_by_tagname(x::XMLElement, n::AbstractString) lst = Vector{XMLElement}() for c in child_elements(x)