Difference between revisions of "XML Attribute"

2 bytes removed ,  13:17, 3 May 2011
m
no edit summary
imported>JRoush
(Rebranding XML "traits" as "attributes")
imported>JRoush
m
Line 1: Line 1:
Normal XML uses named attributes (also called '''traits''', but that word has a different meaning in Oblivion's XML) to specify additional info for an element. The XML syntax doesn't specify what attributes are possible, only that they be given as ''AttributeName="Value"'' in the opening tag of an element.  Oblivion XML recognizes only three true XML attributes: '''name''', '''src''', and '''trait'''.   
Normal XML uses named attributes (also called ''traits'', but that word has a different meaning in Oblivion's XML) to specify additional info for an element. The XML syntax doesn't specify what attributes are possible, only that they be given as ''AttributeName="Value"'' in the opening tag of an element.  Oblivion XML recognizes only three true XML attributes: '''name''', '''src''', and '''trait'''.   


The '''name''' attribute provides a way to identify elements in a menu file.  This attribute is used only for [[Object Element]]s - property or operator elements are never named.  The name of an element need not be unique within the entire menu, but every element should at least have a different name from it's siblings (as discussed below).
The '''name''' attribute provides a way to identify elements in a menu file.  This attribute is used only for [[Object Element]]s - property or operator elements are never named.  The name of an element need not be unique within the entire menu, but every element should at least have a different name from it's siblings (as discussed below).
Anonymous user