12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER7Learning XMLAs mentioned in Chapter 1, you use two languages to build user interfaces <strong>for</strong><strong>World</strong> <strong>of</strong> <strong>Warcraft</strong>. You have already been introduced to Lua, the programminglanguage that defines the behavior <strong>of</strong> the interface, but you haven’t yet tackledeXtensible Markup Language (XML), used to create the graphical frames thatcomprise <strong>WoW</strong>’s user interface. That’s what this chapter is all about.XML as a Markup LanguageA markup language takes text content <strong>and</strong> adds extra in<strong>for</strong>mation to thedocument, mixing it in with the text itself. The markup typically describessomething about the text itself, such as the structure <strong>of</strong> the document or howthe text should be displayed on screen. Following are examples <strong>of</strong> two notablemarkup languages, HTML <strong>and</strong> LaTeX:HTMLMy DocumentHeading OneThis text is bold.111

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!