XML Programming?

FSSC, Airport 2.*, CfgEdit, etc. Get to grips with designing Scenery & Panels here!

XML Programming?

Postby macklinbob » Wed Apr 27, 2011 8:45 pm

First I am en experianced programmer. But I have never worked with XML.

I would like to change the name of a gauge. It looks like it is not as simple as changing the "NAME" statement.

Can anyone help me?

Bob Macklin
Seattle, Wa.
Bob Macklin
Seattle, Wa
User avatar
macklinbob
Ground hog
Ground hog
 
Posts: 24
Joined: Sat Oct 24, 2009 7:41 pm
Location: Seattle, Wa.

Re: XML Programming?

Postby Fr. Bill » Tue May 03, 2011 12:26 pm

1. XML "gauges" are typically in an MS Cabinet (.CAB) file.

2. You can use any unzip program to extract the files.

3. The name of the subfolder created is the main "gauge name."

4. The names of the individual XML files are the "subgauge names."

5. As you may know, gauges are listed in the panel.cfg file's entries in this form:

gaugenn=maingaugename!subgaugename, x,y,w,h

6. Simply rename the XML file to change the sub-gauge name, or the folder name to change the main gauge name.

7. Use the MS CAB utility program (cab.exe) to re-cab the folder.

8. edit the panel.cfg entries to update the names as necessary.
Last edited by Fr. Bill on Tue May 03, 2011 12:27 pm, edited 1 time in total.
BillImage Gauge Programming - 3d Modeling Eaglesoft Development Group Intel Core 2 Quad Q6600-4GB DDR2 Crucial PC6400-800 GB SATA-ATI Radeon HD2400 Pro 256MB DX10 [i
Fr. Bill
Captain
Captain
 
Posts: 961
Joined: Sun Apr 27, 2003 1:31 pm
Location: Hammond, IN

Re: XML Programming?

Postby pete » Sat May 07, 2011 1:56 pm

This really good tutorial by Ken Smith might help to explain some of what you'd like to know ..

http://simviation.com/1/search?submit=1 ... &x=24&y=10
Simplicity is the ultimate sophistication. – Leonardo da Vinci
User avatar
pete
Administrator
Administrator
 
Posts: 10235
Joined: Mon Jan 01, 2001 2:01 am
Location: Cloud Cuckoo Land


Return to Scenery & Panel Design

Who is online

Users browsing this forum: No registered users and 475 guests