Click to See Complete Forum and Search --> : referenced data


evogroup
10-26-2009, 06:45 PM
Is it possible to have an XML file reference data from another XML file?

I'd like the main file for a banner to look like this:

<banner>
<body>caption1</body>
<imagePath>01.jpg</imagePath>
</banner>

and a second XML file to have data like this:

caption1="Lorem ipsum dolor sit amet"

So the output is "Lorem ipsum dolor sit amet" as the body text in my banner.

Thanks,
Evo

ssystems
10-27-2009, 12:50 AM
I guess you might want to look at this (http://xml.silmaril.ie/authors/includes/)

evogroup
10-28-2009, 09:05 AM
I saw that link and also this:
http://www.w3schools.com/DTD/dtd_entities.asp
I figured external entities should do it, but can't get it to work.

Thanks.