<include file="file.xml" /> outside includes.xml
#1
should <include file="file.xml" /> work outside includes.xml?

i can't get it to work. i have tried file.xml with and without the <includes><include> blocks.

i've tried with an include name, then include the file, then include the include name.

the only way it works is if it is in the includes.xml file.

what i want to do is separate a huge file into separate files. i would prefer it not remain in memory by including it in includes.xml.

short sample of what i tried.

Quote:
filea.xml
PHP Code:
<include file="file.xml" \>
<include>
includename</include> 
file.xml
PHP Code:
<includes>
  <include 
name="includename">
        <
control type="group">
            <
posx>35</posx>
            <
posy>150</posy>
            ...
        </
control>
  </include>
<
includes

Quote:
filea.xml
PHP Code:
<include file="file.xml" \> 
file.xml
PHP Code:
<control type="group">
            <
posx>35</posx>
            <
posy>150</posy>
            ...
        </
control
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#2
Should be like so

<includes>
<include name="namer here"
your code here
</include>
</includes>

save it as name.xml and add that to the top of the includes.xml
Reply
#3
so you're verifying if you use file="" in the include. it has to be in includes.xml not in a standard window xml.

i guess that's what the wiki states.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#4
Nuka1195 Wrote:so you're verifying if you use file="" in the include. it has to be in includes.xml not in a standard window xml.

i guess that's what the wiki states.

if your meaning have <include file="new xml name here"/> at the top then yes has to be in the includes.xml as the includes.xml mandatory to the skins.

though you don't need to use it you can have all your animations or stuff you want in the view files or in each xml file but this would mean you would have to code it in every file the includes.xml just acts like a holder for this stuff you can call it when you need it with the <include>name here</include> tags saving on mess and time in other xmls

hope i got it right lol if not sorry.
Reply

Logout Mark Read Team Forum Stats Members Help
<include file="file.xml" /> outside includes.xml0