# Generate Tree Struct using EzXML.jl?

**URL:** https://discourse.julialang.org/t/generate-tree-struct-using-ezxml-jl/73770
**Category:** General Usage
**Tags:** xml, tree
**Created:** [December 29, 2021, 5:45pm UTC](https://discourse.julialang.org/t/generate-tree-struct-using-ezxml-jl/73770 "2021-12-29T17:45:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ahmed\_Salih](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ahmed_salih/32/206579_2.png) [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)
#### Post date: [December 29, 2021, 5:45pm UTC](https://discourse.julialang.org/t/generate-tree-struct-using-ezxml-jl/73770/1 "2021-12-29T17:45:23Z")

</div>

Hello!

Is it possible to use EzXML.jl to extract the full tree of an XML file I am generating? For example if I have an XML as such:

```julia
<Main>
     <SubTag1>
           <LowerTag1 x="0" y="0" z="0" />
     </SubTag1>
     <SubTag2>
           <LowerTag2 x="1" y="0" z="0" />
     </SubTag2>
</Main>

```

Then I want a tree which allows me to write:

```julia
Main.SubTag1.LowerTag1.y

```

Can I auto-generate such a tree from this package or how can I do it my self? I really want to use structs, but if anyone knows of a similar solution using dicts, I am willing to try that out too.

Kind regards

---

<div class="post-metadata">

### Author: ![ThummeTo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thummeto/32/26105_2.png) [@ThummeTo](https://discourse.julialang.org/u/ThummeTo)
#### Post date: [February 2, 2022, 7:04pm UTC](https://discourse.julialang.org/t/generate-tree-struct-using-ezxml-jl/73770/2 "2022-02-02T19:04:59Z")

</div>

I am searching too … I will let you know if I found something.
