# How to split package?

**URL:** <https://discourse.julialang.org/t/how-to-split-package/26850>\
**Category:** General Usage\
**Created:** [July 26, 2019, 3:17pm UTC](https://discourse.julialang.org/t/how-to-split-package/26850 "2019-07-26T15:17:34Z")\
**Posts on this page:** 3\
**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:** [July 26, 2019, 3:17pm UTC](https://discourse.julialang.org/t/how-to-split-package/26850/1 "2019-07-26T15:17:34Z")

</div>

Hey!

I am a bit new to package development but I started making a package and now it has been a bit clouded with funtionality. Say I want to split my module into two files:

PostSPH.jl (main file, which holds the module)  
LightXMLTest.jl

How can I include the second file into the main file, without copying over the contents?

Or do I need to make one big source file having everything inside of the same module?

Kind regards

---

<div class="post-metadata">

**Author:** ![lostella](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lostella/32/356_2.png) [@lostella](https://discourse.julialang.org/u/lostella)\
**Post date:** [July 26, 2019, 3:44pm UTC](https://discourse.julialang.org/t/how-to-split-package/26850/2 "2019-07-26T15:44:43Z")

</div>

Try doing `include(“LightXMLTest.jl”)`

---

<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:** [July 26, 2019, 4:06pm UTC](https://discourse.julialang.org/t/how-to-split-package/26850/3 "2019-07-26T16:06:47Z")

</div>

> [@lostella](#):
>
> include(“LightXMLTest.jl”)

Thanks! Exactly what I wanted.

Kind regards
