Castillo Posted September 29, 2010 Share 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. Link to comment
dzek (varez) Posted September 29, 2010 Share Posted September 29, 2010 and meta.xml is? Link to comment
Castillo Posted September 29, 2010 Author Share Posted September 29, 2010 and meta.xml is? <config src="phones/locationsPhones.xml"/> Link to comment
dzek (varez) Posted September 29, 2010 Share Posted September 29, 2010 use <file src="phones/locationPhones.xml" /> config is for server-side Link to comment
Castillo Posted September 29, 2010 Author Share Posted September 29, 2010 use <file src="phones/locationPhones.xml" /> config is for server-side Thank you varez, its working Link to comment
50p Posted September 29, 2010 Share 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. Link to comment
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