XML/Include

From Warcraft Wiki
< XML
Jump to navigation Jump to search

<Include> (child of <Ui>) loads a file.

<Include file="" />

Attributes

file (xs:string) - Relative path to a *.lua or *.xml file.

Details

  • Executed when reached by the XML parser, going from top to bottom.
  • Unlike <Script>, the file attribute is compulsory and may be used to include other XML files.
  • Not required if the file was already loaded directly from a TOC.
  • If called from within a subdirectory (MyAddOn\libs\SomeLib.xml) then relative pathnames function only when the .toc uses backslashes (\).