Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2006
    Posts
    3

    Problems with XML.Load()

    Hello, I´m new in Setup Factory.

    I want to load a XML file a then modify some of it´s elements.

    i try to do a XML.Load(path) but i get this error:

    "attempt to index global `XML' (a nil value)"

    need some help!!!...

    thank you

  2. #2
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    Post the exact code that you are using inside of the code tags. It is probably a suntax error.

    Adam.

  3. #3
    Join Date
    Mar 2006
    Posts
    3
    this the part of the code

    Code:
    path = SessionVar.Expand("%AppFolder%\\Crpcpns.exe.config");
    XML.Load(_TempFolder..path);
    strXML = XML.GetXML();
    Debug.Print(strXML);

  4. #4
    Join Date
    Mar 2006
    Posts
    3
    i had an error in the previous post.

    this is the part of the code

    Code:
    path = SessionVar.Expand("%AppFolder%\\Crpcpns.exe.config");
    XML.Load(path);
    strXML = XML.GetXML();
    Debug.Print(strXML);

  5. #5
    Join Date
    Oct 2006
    Posts
    1

    Star XML.Load same problem

    XML.Load same problem

    error: On Post Install Line 5 attempt to index global `XML' (a nil value)"

    code:
    if (check02) then
    path = SessionVar.Get("%ProgramFilesFolder%");
    temp = SessionVar.Get("%WindowsFolder%");
    text = TextFile.ReadToString(temp.."\\Temp\\1.txt");
    XML.Load(path.."\\OpenOffice.org 2.0.1\\share\\config\\soffice.cfg\\modules\\swrite r\\menubar\\menubar.xml");
    XML.InsertXML("menu:menubar", text, XML.INSERT_BEFORE);
    end

    HELP!

  6. #6
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    Maybe you are using an older version that did not include the XML actions? What version are you running?

    Adam Kapilik

  7. #7
    Join Date
    Jan 2007
    Posts
    2

    XML.Load bug

    I want to load a XML file but I have this error code:

    "attempt to index global `XML' (a nil value)"

    This is in the Post Install Action:
    XML.Load(SessionVar.Expand("%AppFolder%\\Config\\C onfig.xml"))

    Where %AppFolder% = "C:\Program Files\Cible Qualité v2007.01.01"
    This is combinaison of: %ProgramFilesFolder%\%ProductName% %ProductVer%

    I test Setup Factory 7.0.3.0

    can I suppose the patch 7.0.6.0 update this bug or the bug is in my path "C:\Program Files\Cible Qualité v2007.01.01"?

    thanks
    Last edited by rpaul; 01-25-2007 at 12:25 AM.

  8. #8
    Join Date
    Jan 2007
    Posts
    2
    OK

    With the update 7.0.6.0, no problem to load XML file with no error ...

Similar Threads

  1. Get the path with XML.Load
    By fossil in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 01-09-2006, 12:02 PM
  2. Problems with System.GetOSVersionInfo
    By kmartin7 in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 03-13-2004, 07:55 PM
  3. Problems with flash.....
    By RobbyH in forum AutoPlay Media Studio 4.0
    Replies: 7
    Last Post: 02-10-2003, 04:11 PM
  4. TU problems with ZIP
    By clindemann in forum TrueUpdate 1.0
    Replies: 1
    Last Post: 10-16-2002, 08:50 AM
  5. SF 6.0.0.1 Problems
    By JXBURNS in forum Setup Factory 6.0
    Replies: 5
    Last Post: 12-17-2001, 09:34 AM

Posting Permissions

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