Difference between revisions of "ISKernel:XMLSetting (Command)"

From Lavish Software Wiki
Jump to navigation Jump to search
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Syntax ==
+
This command is deprecated. You should not use it.
XMLSetting -load <filename>|-save <filename>|-unload <filename>|-set <filename> <set> <setting> <value>|-get <filename> [set] [setting]
 
  
== Forms ==
+
Use [[LavishSettings]]. See [[LavishSettings:LavishScript_Usage_Walkthrough|LavishScript Usage Walkthrough]]
*XMLSetting -save <filename>|-unload <filename>|-set <filename> <set> <setting> <value>|-get <filename> [set] [setting]
 
*XMLSetting -save <filename> - saves an XML file
 
*XMLSetting -unload <filename> - unloads an XML file
 
*XMLSetting -set <filename> <set> <setting> <value> - loads <filename> if necessary and sets the <value> of the <setting> in the <set> specified.
 
*XMLSetting -get - displays all sets, all settings inside a set or of a specific setting, depending on the parameters given
 
<small>Tip: XML files are not automatically saved after changing their value.To use an XML setting in a command, you need to use the [[ISSession:XMLSetting (Top-Level Object)|XMLSetting Top-Level Object]].</small>
 
 
 
== Examples ==
 
*XMLSetting -load Settings.xml
 
: Loads Settings.xml
 
*XMLSetting -set Settings.xml "Chat Options" "Channel 1" ON
 
: Sets the given setting to "ON"
 
*XMLSetting -get Settings.xml
 
: Lists all sets in Settings.xml
 
*XMLSetting -get Settings.xml "Chat Options"
 
: Lists all settings in the "Chat Options" set in Settings.xml
 
*XMLSetting -get Settings.xml "Chat Options" "Channel 1"
 
: Displays the value of the given setting
 
*XMLSetting -save Settings.xml
 
: Saves Settings.xml
 
*XMLSetting -unload Settings.xml
 
: Unloads Settings.xml
 
 
 
== See Also ==
 
*[[LavishScript:Commands|LavishScript Commands]]
 
*[[IS:Session#Commands|Inner Space Session Commands]]
 
 
 
{{Command-Stub}}
 
[[Category:Inner Space]]
 
[[Category:Inner Space Session]]
 
[[Category:Inner Space Session Commands]]
 

Latest revision as of 03:17, 21 April 2009

This command is deprecated. You should not use it.

Use LavishSettings. See LavishScript Usage Walkthrough