# XML in Basalt Basalt provides an XML parser that lets you define your UI layout in a declarative way. This can make your code more readable and maintainable. ## Basic Usage ```lua local main = basalt.getMainFrame() -- Load from file local xmlFile = fs.open("myUI.xml", "r") main:loadXML(xmlFile.readAll()) xmlFile.close() -- Or directly as string main:loadXML([[ ``` ## Property Types The XML parser automatically converts values based on the property type: ```xml ```