AXXESS
09-01-2005, 01:36 PM
I am attempting to use XML.SetValue to change the value of "Assistance" from "true" to "false", thus toggling the radio button in its group.
When referencing the path, does the full path have to be referenced? I.E., AutoPlay\\Docs\\...? Then, based on the example, what is the proper path to change the value?
After changing the value, is the XML.Save action required, or is the change written and saved to the XML file with the SetValue action?
<?xml version="1.0" encoding="iso-8859-1" ?>
- <menu lang="en">
- <item label="File">
<item label="Exit" />
</item>
- <item label="Documents">
- <item label="Instructions">
<item label="Standard Buttons" />
<item label="Address Bar" />
<item label="Links" />
<item type="separator" />
<item label="Lock the Toolbars" />
</item>
- <item label="Specifications">
<item label="Standard Buttons" />
<item label="Address Bar" />
<item label="Links" />
<item type="separator" />
<item label="Lock the Toolbars" />
</item>
- <item label="References">
<item label="Standard Buttons" />
<item label="Address Bar" />
<item label="Links" />
<item type="separator" />
<item label="Lock the Toolbars" />
</item>
</item>
- <item label="Instruction">
- <item label="Overview">
<item label="Standard Buttons" type="check" selected="true" />
<item label="Address Bar" type="check" selected="true" />
<item label="Links" type="check" selected="true" />
<item type="separator" />
<item label="Lock the Toolbars" type="check" selected="true" />
<item label="Customize…" />
</item>
<item label="Type 1" />
- <item label="Type 2">
<item label="Search" type="check" />
<item label="Favorites" type="check" />
<item label="Media" type="check" />
<item label="History" type="check" />
<item label="Folders" type="check" />
</item>
</item>
- <item label="Options">
- <item label="Assistance">
<item label="On" type="radio" groupName="assistance" selected="true" />
<item label="Off" type="radio" groupName="assistance" selected="false" />
</item>
<item type="separator" />
- <item label="Narration">
<item label="On" type="radio" groupName="narration" selected="true" />
<item label="Off" type="radio" groupName="narration" selected="false" />
</item>
</item>
- <item label="Help">
<item label="Contents and Index" />
<item type="separator" />
<item label="Check for Update" />
<item type="separator" />
<item label="About…" />
<item label="Program Support" />
</item>
</menu>
When referencing the path, does the full path have to be referenced? I.E., AutoPlay\\Docs\\...? Then, based on the example, what is the proper path to change the value?
After changing the value, is the XML.Save action required, or is the change written and saved to the XML file with the SetValue action?
<?xml version="1.0" encoding="iso-8859-1" ?>
- <menu lang="en">
- <item label="File">
<item label="Exit" />
</item>
- <item label="Documents">
- <item label="Instructions">
<item label="Standard Buttons" />
<item label="Address Bar" />
<item label="Links" />
<item type="separator" />
<item label="Lock the Toolbars" />
</item>
- <item label="Specifications">
<item label="Standard Buttons" />
<item label="Address Bar" />
<item label="Links" />
<item type="separator" />
<item label="Lock the Toolbars" />
</item>
- <item label="References">
<item label="Standard Buttons" />
<item label="Address Bar" />
<item label="Links" />
<item type="separator" />
<item label="Lock the Toolbars" />
</item>
</item>
- <item label="Instruction">
- <item label="Overview">
<item label="Standard Buttons" type="check" selected="true" />
<item label="Address Bar" type="check" selected="true" />
<item label="Links" type="check" selected="true" />
<item type="separator" />
<item label="Lock the Toolbars" type="check" selected="true" />
<item label="Customize…" />
</item>
<item label="Type 1" />
- <item label="Type 2">
<item label="Search" type="check" />
<item label="Favorites" type="check" />
<item label="Media" type="check" />
<item label="History" type="check" />
<item label="Folders" type="check" />
</item>
</item>
- <item label="Options">
- <item label="Assistance">
<item label="On" type="radio" groupName="assistance" selected="true" />
<item label="Off" type="radio" groupName="assistance" selected="false" />
</item>
<item type="separator" />
- <item label="Narration">
<item label="On" type="radio" groupName="narration" selected="true" />
<item label="Off" type="radio" groupName="narration" selected="false" />
</item>
</item>
- <item label="Help">
<item label="Contents and Index" />
<item type="separator" />
<item label="Check for Update" />
<item type="separator" />
<item label="About…" />
<item label="Program Support" />
</item>
</menu>