From f3f81054591008fd70e8c0d5e1e90aa9d2c70a5d Mon Sep 17 00:00:00 2001
From: Robert Jelic <36573031+NoryiE@users.noreply.github.com>
Date: Sun, 7 May 2023 00:12:23 +0200
Subject: [PATCH] Update xml.md
---
docs/guides/xml.md | 40 +++++++++++++++-------------------------
1 file changed, 15 insertions(+), 25 deletions(-)
diff --git a/docs/guides/xml.md b/docs/guides/xml.md
index 6146a43..e5b9aca 100644
--- a/docs/guides/xml.md
+++ b/docs/guides/xml.md
@@ -21,13 +21,11 @@ Basalt uses XML to define UI elements and their properties. By using XML, you ca
Here's an example of an XML file that defines a simple UI layout for Basalt:
```xml
-
-
-
-
+
+
```
-In this example, we define a `Frame` containing a `Label` and a `Button` with their respective properties, such as `id`, `text`, `x`, and `y`.
+In this example, we define a `Label` and a `Button` with their respective properties, such as `id`, `text`, `x`, and `y`.
To use the loaded XML data to create the UI elements in Basalt, you can use `main:getXMLElements()`:
@@ -52,10 +50,8 @@ To include Lua code in your XML file, you can use the `
-
-
-
-
+
+