# EzXML node question

**URL:** <https://discourse.julialang.org/t/ezxml-node-question/57277>\
**Category:** General Usage\
**Created:** [March 16, 2021, 8:34am UTC](https://discourse.julialang.org/t/ezxml-node-question/57277 "2021-03-16T08:34:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![matianhe3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/matianhe3/32/22967_2.png) [@matianhe3](https://discourse.julialang.org/u/matianhe3)\
**Post date:** [March 16, 2021, 8:34am UTC](https://discourse.julialang.org/t/ezxml-node-question/57277/1 "2021-03-16T08:34:03Z")

</div>

```julia
    file = readxml("f0dc19ff.xml")
    nums = findall("//TT", file)
    for num in nums
        counter = findall("//contour", num))
        println(length(counter))

```

```julia
<TT><contour></contour></TT>
<TT><contour></contour></TT>
<TT><contour></contour></TT>
<TT><contour></contour></TT>
<TT><contour></contour></TT>
<TT><contour></contour></TT>

```

i think it will print `1` , i want get every =\> num.  
but it gives me `6`, findall seems not in `num` , it still search in `file`?  
i must use `counter = findall("//contour", parsexml(string(num)))` get the result that i need.

---

<div class="post-metadata">

**Author:** ![matianhe3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/matianhe3/32/22967_2.png) [@matianhe3](https://discourse.julialang.org/u/matianhe3)\
**Post date:** [March 23, 2021, 3:26am UTC](https://discourse.julialang.org/t/ezxml-node-question/57277/2 "2021-03-23T03:26:36Z")

</div>

😪

---

<div class="post-metadata">

**Author:** ![sijo](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@sijo](https://discourse.julialang.org/u/sijo)\
**Post date:** [March 24, 2021, 6:36pm UTC](https://discourse.julialang.org/t/ezxml-node-question/57277/3 "2021-03-24T18:36:24Z")

</div>

I tried similar code and it works by me…

Could you give access to the file that you’re trying to read, so we can test the code?

Also please make sure your code is a complete working example (the for loop is missing and `end`, and the second `findall` line has an extra parenthesis).
