Difference between revisions of "Category:Oblivion XML"

20 bytes added ,  10:21, 31 March 2010
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 "&lt;!--"  and "--&gt;":
''Comments'' can be added to the code by enclosing them with "&lt;!--"  and "--&gt;":
Anonymous user