# Reference XML to another XML, possible?

**URL:** <https://forum.kirupa.com/t/reference-xml-to-another-xml-possible/227280>\
**Category:** Uncategorized\
**Created:** [May 29, 2007, 5:00am UTC](https://forum.kirupa.com/t/reference-xml-to-another-xml-possible/227280 "2007-05-29T05:00:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnlouis](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/johnlouis/32/568_2.png) [@johnlouis](https://forum.kirupa.com/u/johnlouis)\
**Post date:** [May 29, 2007, 5:00am UTC](https://forum.kirupa.com/t/reference-xml-to-another-xml-possible/227280/1 "2007-05-29T05:00:03Z")

</div>

is it possible to make an XML file reference another XML file?  
Like I have an XML like so:

```php
 <press>
    <path="pages/">

    <pages>
        <id="0"/>
        <pagename="test"/>
        <thumb="thumb.jpg"/>
        <content>
            //refer to content.xml
        </content>
    </pages>

    <pages>
        <id="1"/>
        <pagename="test2"/>
        <thumb="thumb.jpg"/>
        <content>
            //refer to another content.xml
        </content>
    </pages>
</press>

```

**content.xml**  
i’ll have multiple instances of this, seperated by folders.

```php

<content>
    <name="TEST">
    <title>
            This is a test.
    </title>
    <desc>
        Lorem ipsum and stuff.
    </desc>
</content>

```

i hope that was clear… is that possible? if so, how would I do that?  
or if that can’t be done, any alternative method?
