Topic: Including XML Documents Pages that link to <a href="https://ozoneasylum.com/backlink?for=25717" title="Pages that link to Topic: Including XML Documents" rel="nofollow" >Topic: Including XML Documents\

 
Author Thread
Maskkkk
Paranoid (IV) Inmate

From: Willaimsport, PA, US of A the hole in the Ozone
Insane since: Mar 2002

IP logged posted posted 05-09-2005 15:16 Edit Quote

Is there a way in standard XML syntax to include multiple other XML documents within that file?

I have a really huge configuration file that needs to be simplifed by such a mechanizm.



- Biggie

- Face the Present
- AIM: MASKKKK

01001101011000010111001101101011011010110110101101101011

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

IP logged posted posted 05-09-2005 15:40 Edit Quote

IIRC you should use some XLINK: simple-links
But there probably is something even more simple.

HZR
Bipolar (III) Inmate

From: Cold Sweden
Insane since: Jul 2002

IP logged posted posted 05-09-2005 21:49 Edit Quote

You can use an entity declaration in your DOCTYPE declaration like so

code:
<!DOCTYPE doc [
<!ENTITY include SYSTEM "include.xml">
]>


and then use a normal entity reference (&include;) to include the document.

You might also want to take a look at XInclude

(Edited by HZR on 05-09-2005 23:23)

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

IP logged posted posted 05-10-2005 00:11 Edit Quote

Mucho better.
What did I have in mind



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu