Jump to content

client side xml


Castillo

Recommended Posts

hi, i've got a problem loading data from a xml file to a grid list, dunno why the xml xml won't load but in server side it does... here is my loading code part.

function populateGridlist() 
    local rootnode = xmlLoadFile("phones/locationsPhones.xml") 
    if rootnode then 
        for _,group in ipairs(xmlNodeGetChildren(rootnode)) do 
            local row = guiGridListAddRow(listPlaces) 
            local name = xmlNodeGetAttribute(group,"name") 
            guiGridListSetItemText ( listPlaces, row, 1, name, false, false ) 
            outputDebugString("working") 
        end 
        xmlUnloadFile(rootnode) 
    end 
end 

thanks in advance.

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...