WoW:Setting up Visual Studio for WoW XML (source)
Revision as of 21:14, 17 February 2009
, 17 February 2009no edit summary
mNo edit summary |
No edit summary |
||
| Line 13: | Line 13: | ||
== Visual Studio == | == Visual Studio == | ||
Chances are, you don't just have a copy of Visual Studio hanging around for your coding pleasure. Thankfully, Microsoft has released parts of VS for free. The Microsoft Visual Studio Express Editions are simplified copies of the most popular components: C++, C#, Visual Basic | Chances are, you don't just have a copy of Visual Studio hanging around for your coding pleasure. Thankfully, Microsoft has released parts of VS for free. The Microsoft Visual Studio Express Editions are simplified copies of the most popular components: C++, C#, Visual Basic, SQL Server, & Visual Web Developer. [http://www.microsoft.com/express/ Download] and install whichever component you think you might get some use out of since all we're really after here is the basic editor environment. | ||
Be sure to set up VS as your default XML editor. For Windows XP the easiest way to do this is to right-click on any XML file, click Open With...->Choose Program, select Microsoft Visual Studio from the list (the name may be different depending on the edition you select), check Always use the selected program, and hit OK. | Be sure to set up VS as your default XML editor. For Windows XP the easiest way to do this is to right-click on any XML file, click Open With...->Choose Program, select Microsoft Visual Studio from the list (the name may be different depending on the edition you select), check Always use the selected program, and hit OK. | ||
== The Ui Tag == | == The Ui Tag == | ||
Now you need to change the Ui tag in your XML files to point to the XML schema. The simplest way to do this is to use the following tag: | |||
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ | <nowiki><Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ | ||
. | http://wowprogramming.com/FrameXML/UI.xsd"></nowiki> | ||
This will pull the schema from the [http://wowprogramming.com WoWProgramming website]. If you'd rather use a local copy, you can either download [http://wowprogramming.com/FrameXML/UI.xsd that file], or extract it using [[HOWTO: View Blizzard's Interface Code|Blizzard's UI extractor]]. Then change the location in your Ui tag from <nowiki>http://wowprogramming.com/FrameXML/UI.xsd</nowiki> to the location of the file you downloaded (e.g. "C:/Program Files/World of Warcraft/Blizzard Interface Data (enUS)/FrameXML/UI.xsd") | |||
That's all there is to it! | That's all there is to it! | ||
[[Category:HOWTOs|Set up Visual Studio for WoW XML]] | [[Category:HOWTOs|Set up Visual Studio for WoW XML]] | ||