Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3

Thread: Editing XML

  1. #1
    Join Date
    Dec 2006
    Posts
    2

    Editing XML

    Hi, does anyone knows the right way to manipulate XML in Setup Factory? I am trying to edit the config file at my desktop but the XML code seens not to be working.

    I am placing the XML code in a Search Screen that I created. It searches through all the drives for my installer files to replace a config.xml file value.

    My code is:

    XML.Load("C:\Documents and Settings\uepub\Desktop\config.xml");
    XML.SetValue("config/section:8/key:4", "xxx");
    XML.Save("C:\Documents and Settings\uepub\Desktop\config.xml");

    I need to change the value for "ProfileSelection" under the 8th "Section" and 4th "Key" from 0 to 1.

    Pls look through the following XML file below:
    http://www.longman.com.sg/downloads/config.xml

    Thanks and your help is very much appreciated!

  2. #2
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    In Setup Factory you need to use \\ for paths in script.

    Your code should look like this:

    Code:
    XML.Load("C:\\Documents and Settings\\uepub\\Desktop\\config.xml");
    XML.SetValue("config/section:8/key:4", "xxx");
    XML.Save("C:\\Documents and Settings\\uepub\\Desktop\\config.xml");
    Not sure if this solves the problem or not but it will at least run the xml actions properly.

    Adam Kapilik

  3. #3
    Join Date
    Dec 2006
    Posts
    2

    Problem Solved

    Thank you Adam! I got the script to work. Now I am able to edit the XML. Thank you very much!

Similar Threads

  1. Editing .config XML files
    By bartels76 in forum Setup Factory 7.0
    Replies: 1
    Last Post: 01-18-2007, 01:26 PM
  2. Editing an file XML
    By katanapilot in forum Setup Factory 7.0
    Replies: 3
    Last Post: 01-13-2007, 06:57 PM
  3. Error inserting XML
    By TJS in forum AutoPlay Media Studio 6.0
    Replies: 6
    Last Post: 06-08-2006, 10:30 AM
  4. XML format
    By TJ_Tigger in forum AutoPlay Media Studio 5.0
    Replies: 6
    Last Post: 10-04-2005, 12:47 PM
  5. Spotlight: XML Actions Plugin
    By Desmond in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 03-15-2004, 03:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts