Jump to content

GUI shows file content


XetaQuake

Recommended Posts

Using XML:

The XML file "info.xml":

<root> 
<info>stuff here</info> 
</root> 

A window with a memo that contains the data from the XML above:

xmlInfo = xmlLoadFile("info.xml") 
  
xmlInfoNode = xmlFindSubNode(xmlInfo, "info", 0) 
xmlInfoData = xmlNodeGetValue(xmlInfoNode) 
  
myWindow = guiCreateWindow(200, 200, 480, 640, "My Window", false) 
  
infoMemo = guiCreateMemo(0, 0, 1, 1, xmlInfoData, true, myWindow) 

This is all client-side.

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