lotrointerface.com
Search Downloads


Go Back   LoTROInterface > LotRO > Developer Discussions > XML modification help (L)

Reply
Thread Tools Display Modes
  #1  
Unread 01-16-2010, 08:08 AM
MrJackdaw's Avatar
MrJackdaw MrJackdaw is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Feb 2009
Location: Lancaster, England
Posts: 249
xi:include

Does the xi:include function work with the SkinDefinition XML?

I am no programmer, but would like to split the file into parts to make it simpler to update and generally modify.

Anyone there have any ideas?
Reply With Quote
  #2  
Unread 01-17-2010, 09:23 AM
daimon's Avatar
daimon daimon is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Aug 2007
Location: Finland
Posts: 466
it would certainly open new interesting opportunities ..
__________________
~·~ DaimonUI ~·~
avatar by Humon
Reply With Quote
  #3  
Unread 01-17-2010, 09:28 AM
hawkeye666's Avatar
hawkeye666 hawkeye666 is offline
The Unscathed
 
Join Date: May 2008
Location: Hebron, KY, USA
Posts: 16
XML Parser

Yes, very interesting idea. It appears Turbine uses XUL.DLL as their XML parser. If we go strictly by file name this is also the file Mozilla/Firefox uses for it's XML engine. So does Mozilla support the includes? There's a slight chance it might work. Otherwise I suppose someone could also write an app to dynamically build the standard XML and drop it in place before launching LotRO. .NET and the MS parser would certainly work. However it would be done it would seem to me that the parser would have to support it.

Last edited by hawkeye666 : 01-17-2010 at 09:32 AM.
Reply With Quote
  #4  
Unread 01-17-2010, 02:24 PM
MrJackdaw's Avatar
MrJackdaw MrJackdaw is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Feb 2009
Location: Lancaster, England
Posts: 249
Well... I tried a file using the function, but sadly it didn't work. The skin could be loaded, but only what was in the main file was passed to the game.

HOWEVER! I know little to nothing about XML so my code could have been complete garbage - is it worth posting here?
Reply With Quote
  #5  
Unread 01-17-2010, 03:14 PM
daimon's Avatar
daimon daimon is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Aug 2007
Location: Finland
Posts: 466
just a side note

as a skin author i have found basic scripts quite handy to keep multiple xml files updated.

I got bunch of xml files that have different values for different resolutions. then i have xml files that include code that is the same for everything. and I can have separate file for example artassets and elements .. makes it all a bit more easier to handle for me.

just make a small script and use .bat or .cmd extension for it. then add some basic scripts to parse the files you want:

Code:
TYPE file1.xml >> SkinDefinition.xml
TYPE file2.xml >> SkinDefinition.xml
That example would first add everything from file1.xml into Skindefinition.xml and after that add everything from file2.xml into Skindefinition.xml.

I accidentally left all my scripts in daimonui version 3.5 so if you want to have a look how i have it there they all are.
__________________
~·~ DaimonUI ~·~
avatar by Humon
Reply With Quote
  #6  
Unread 01-18-2010, 01:37 AM
MrJackdaw's Avatar
MrJackdaw MrJackdaw is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Feb 2009
Location: Lancaster, England
Posts: 249
Mozilla does NOT currently support Xinclude, so it looks like the chances are slipping away...

Oh well! Maybe in the next update...

And thanks for that, Daimon, definitely something I will look into!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:16 AM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui