Difference between revisions of "Category:Oblivion XML"
Jump to navigation
Jump to search
→General Syntax
imported>JRoush m |
imported>JRoush |
||
Line 19: | Line 19: | ||
Element ''traits'' are written as name/value pairs in the opening tag: | Element ''traits'' are written as name/value pairs in the opening tag: | ||
<image traitname="traitvalue"> </image> | <image traitname="traitvalue"> </image> | ||
Traits are an essential part of XML, in that they can refine & control elements, and differentiate elements of the same type from one another. '''Note''', though, that Oblivion only recognizes a few traits, and instead prefers to refine & control elements using ''child elements''. See the next section, on [[#Oblivion XML Schema]] for more details. | Traits are an essential part of XML, in that they can refine & control elements, and differentiate elements of the same type from one another. '''Note''', though, that Oblivion only recognizes a few traits, and instead prefers to refine & control elements using ''child elements''. See the next section, on [[#Oblivion XML Schema|Oblivion XML Schema]] for more details. | ||
''Comments'' can be added to the code by enclosing them with "<!--" and "-->": | ''Comments'' can be added to the code by enclosing them with "<!--" and "-->": |