Difference between revisions of "Category:Oblivion XML"
Jump to navigation
Jump to search
m
→General Syntax
imported>JRoush |
imported>JRoush m (→General Syntax) |
||
Line 6: | Line 6: | ||
XML markup syntax is largely based on HTML. An XML element is defined by an pair of opening and closing ''tags'' - matching angle brackets "<>" enclosing the type of the element. For example, the following xml code defines a text element: | XML markup syntax is largely based on HTML. An XML element is defined by an pair of opening and closing ''tags'' - matching angle brackets "<>" enclosing the type of the element. For example, the following xml code defines a text element: | ||
<text> </text> | <text> </text> | ||
Note that the closing tag is denoted by slash. Anything in between an element's tags is considered to be a child of that element. For example, the following defines an image element which has a child text element: | Note that the closing tag is denoted by slash. Anything in between an element's tags is considered to be a child (or "contents") of that element. For example, the following defines an image element which has a child text element: | ||
<image> <text> </text> </image> | <image> <text> </text> </image> | ||
If an element has no children, like the first example above, then the opening/closing tag syntax can be abbreviated to: | If an element has no children, like the first example above, then the opening/closing tag syntax can be abbreviated to: |