summaryrefslogtreecommitdiff
path: root/osframework/source/demos/properties/demo.xml
diff options
context:
space:
mode:
Diffstat (limited to 'osframework/source/demos/properties/demo.xml')
-rw-r--r--osframework/source/demos/properties/demo.xml38
1 files changed, 38 insertions, 0 deletions
diff --git a/osframework/source/demos/properties/demo.xml b/osframework/source/demos/properties/demo.xml
new file mode 100644
index 0000000..aa31984
--- /dev/null
+++ b/osframework/source/demos/properties/demo.xml
@@ -0,0 +1,38 @@
+<!-- below is an example of an instruction. The XMLParser class can handle instruction syntax,
+ but you'll notice that in the XMLDemo we don't actually use the value, we just ignore it. -->
+<?xml version="1.0"?>
+
+<!-- Sections contain nested items -->
+<Section1>
+
+ <!-- This item, "Item1", contains just 1 attribute, "text", and nothing more -->
+ <Item1 text="Some text for Section1/Item1"/>
+
+ <!-- This item, "BoolParam", contains an attribute, "text", as well as an element value,
+ which is the string "true" -->
+ <BoolParam text="Some text for Section1/BoolParam">true</BoolParam>
+
+ <!-- end of the section -->
+</Section1>
+
+<!-- This section contains an attribute in its line -->
+<Section2 s2attrib="Section2 attrib text">
+ <IntParam text="Some text for Section2/IntParam">1234</IntParam>
+
+ <!-- This just shows that you can split things up across lines. This is functionally equivalent to:
+ <MultiAttrib attrib1="attrib1" attrib2="2" attrib3="woo! attrib3!"/> -->
+
+ <MultiAttrib
+ attrib1="attrib1"
+ attrib2="2"
+ attrib3="woo! attrib3!"
+ />
+
+ <!-- The XMLParser class handles nested sections as well -->
+ <Subsection>
+ <!-- and of course, you can put more items in here, like any other section -->
+ <Item2>Text for Section2/Subsection/Item2</Item2>
+ </Subsection>
+
+</Section2>
+ \ No newline at end of file