PDA

View Full Version : XML organization and reusability



Xarxus
December 18th, 2020, 15:06
Here I am with another of my questions: is there a way to put a part of a class in a separate file?
I tried this without any success:

First file

<?xml version="1.0" encoding="utf-8"?>
<root>

<windowclass name="myName" mergerule="replace">

<includefile source="secondFile.xml" />
</windowclass>
</root>


Second file

<sheetdata>

<close_charsheet />
</sheetdata>


I've tried even using this kind of second file

<?xml version="1.0" encoding="utf-8"?>
<root>

<sheetdata>

<close_charsheet />
</sheetdata>
</root>


:confused:

PS Is this the right place for this kind of questions?

Trenloe
December 18th, 2020, 15:26
PS Is this the right place for this kind of questions?
Moved to The Workshop forum.

Xarxus
December 18th, 2020, 15:37
Ty, I thought there was a better place :p

Moon Wizard
December 18th, 2020, 16:31
You can't embed includefile tags within other tags; they must be at the top level of the file.

Regards,
JPG

Xarxus
December 18th, 2020, 16:51
Ok, ty. I tried :o