XMLDocContentProcessor

Published 3/5/2007 by createdbyx in News | XNA

It seems XNA and GSE (Game Studio Express) does not ship with a simple xml importer and/or processors, so you can use xml files as a game asset. So I created the XMLDocContentProcessor library that allows XNA developers to use regular xml files as game assets using the xna content pipeline, and returns a XMLDocument object containing the xml data. A simple example of how to use the library is provided below ...

// declare a XmlDocument that will contain
// the xml data
XmlDocument doc;

// call content.load method and specify the 
// XmlDocument as the return type
doc = content.Load‹XmlDocument›("Test");

// set the title of the window to the 
// content stored in the root node
this.Window.Title = doc.DocumentElement.InnerText;

Add comment



biuquote
  • Comment
  • Preview
Loading






Created by: X

Just another personal website in this crazy online world

Name of author Dean Lunz (aka Created by: X)
Computer programming nerd, and tech geek.
About Me -- Resume