# Accessing each Leaf in a .root file over a loop to extract its data

**URL:** <https://root-forum.cern.ch/t/accessing-each-leaf-in-a-root-file-over-a-loop-to-extract-its-data/35633>\
**Category:** ROOT\
**Created:** [August 14, 2019, 8:31am UTC](https://root-forum.cern.ch/t/accessing-each-leaf-in-a-root-file-over-a-loop-to-extract-its-data/35633 "2019-08-14T08:31:01Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [August 19, 2019, 1:59pm UTC](https://root-forum.cern.ch/t/accessing-each-leaf-in-a-root-file-over-a-loop-to-extract-its-data/35633/9 "2019-08-19T13:59:27Z")

</div>

Hi @kmac - keep in mind that this Go code is not part of ROOT - we should have a solution in ROOT proper! @pcanal wouldn’t XMLIO do?

---

_[View the full topic](https://root-forum.cern.ch/t/accessing-each-leaf-in-a-root-file-over-a-loop-to-extract-its-data/35633)._
