J
jmcmejl
Hi
I have a question regarding including an xml file into another.
I have googled and found this:
Mainfile.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE adocname[
<!ENTITY anincludedfile1 SYSTEM "anincludedfile1.xml">
<!ENTITY anincludedfile2 SYSTEM "anincludedfile2.xml">
]>
<arootnode>
&anincludedfile1;
&anincludedfile2;
</arootnode>
anincludedfile1.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<anode name="test1" />
anincludedfile2.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<anode name="test2" />
So far noproblem, everything works great.
But here is my problem, I would like anincludedfile1.xml to include
another xmlfile and that file might include another ant so forth.
In reallity I will probably not be very many levels but I would prefer
not having any limitations.
Applying the same technique on the other files will render an error
somethng like "You can only have one doctype".
Please help me.
/Jimmy
I have a question regarding including an xml file into another.
I have googled and found this:
Mainfile.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE adocname[
<!ENTITY anincludedfile1 SYSTEM "anincludedfile1.xml">
<!ENTITY anincludedfile2 SYSTEM "anincludedfile2.xml">
]>
<arootnode>
&anincludedfile1;
&anincludedfile2;
</arootnode>
anincludedfile1.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<anode name="test1" />
anincludedfile2.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<anode name="test2" />
So far noproblem, everything works great.
But here is my problem, I would like anincludedfile1.xml to include
another xmlfile and that file might include another ant so forth.
In reallity I will probably not be very many levels but I would prefer
not having any limitations.
Applying the same technique on the other files will render an error
somethng like "You can only have one doctype".
Please help me.
/Jimmy