#include and xml in another xml

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

quasius
Just popping in
Just popping in
Posts: 14
Joined: Tue Mar 25, 2008 15:56

#include and xml in another xml

Postby quasius » Sun Jul 18, 2010 19:10

I'm using xml to define my CEGUI gui, but a single file is gettin a bit unwieldy. Is there a simple way to "#include" an xml file in another xml file? Thanks for any info.

User avatar
emarcotte
Quite a regular
Quite a regular
Posts: 55
Joined: Fri Dec 26, 2008 14:30
Contact:

Re: #include and xml in another xml

Postby emarcotte » Mon Jul 19, 2010 10:37

I don't know that CEGUI supports it or enables it in the various xml parsing libraries it can use, but in general the technology you're looking for is xinclude. You could try sticking an xinclude in your document and seeing if CEGUI recognizes the additional content. If not, you could see if the parser you choose supports xinclude and see if you can turn it on in CEGUI (I think xerces and expat both support it, but I may be wrong).

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: #include and xml in another xml

Postby CrazyEddie » Wed Jul 21, 2010 09:27

I also don't know if this would work, I guess it depends on how it's implemented exactly in the parsers. My first thought is that it probably won't work, but yeah, try it and let us know :)

CE.

quasius
Just popping in
Just popping in
Posts: 14
Joined: Tue Mar 25, 2008 15:56

Re: #include and xml in another xml

Postby quasius » Thu Jul 22, 2010 06:44

I couldn't get it to work and eventually did it myself. (Wrote code to process the include directives.) It just seemed to be ignoring the include directives.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 29 guests