Jump to content

XML issue


Recommended Posts

I have been re doing a Spawn GUI since its existing system is not very good so a friend of mine advised me to base it on XML

Have added the information required for spawning etc. into an XML file however I cannot see what ive gone wrong as the debugger saying xmlNodeGetChildren is a bad argument.

  
function AddLoc() 
     function datainfo () 
        local xml = xmlLoadFile("Data.xml"); 
        local xmlNodes = xmlNodeGetChildren(xml); 
        for i,node in ipairs(xmlNodes) do 
        Locs[tonumber(xmlNodeGetAttribute(node,'location'))] = tonumber(xmlNodeGetAttribute(node,'id')); 
        Locs = guiGridListAddRow(Location) 
    end 
    xmlUnloadFile(xml); 
    end 
    end 
  

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...