Castillo Posted September 29, 2010 Posted September 29, 2010 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.
Castillo Posted September 29, 2010 Author Posted September 29, 2010 and meta.xml is? <config src="phones/locationsPhones.xml"/>
dzek (varez) Posted September 29, 2010 Posted September 29, 2010 use <file src="phones/locationPhones.xml" /> config is for server-side
Castillo Posted September 29, 2010 Author Posted September 29, 2010 use <file src="phones/locationPhones.xml" /> config is for server-side Thank you varez, its working
50p Posted September 29, 2010 Posted September 29, 2010 use <file src="phones/locationPhones.xml" /> config is for server-side Not necessarily. You can use : <config src="phones/locationPhones.xml" type="client" /> Then you can use getResourceConfig instead.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now