Difference between revisions of "XML Attribute"

91 bytes removed ,  12:56, 21 December 2023
no edit summary
imported>JRoush
(Rebranding XML "traits" as "attributes")
Tag: Manual revert
 
(8 intermediate revisions by 4 users not shown)
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'''.   
XML uses named attributes 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