How do I use Content.Load() with raw XML files?

Posted by xnanewb on Game Development See other posts from Game Development or by xnanewb
Published on 2012-11-08T07:52:46Z Indexed on 2012/11/08 11:23 UTC
Read the original article Hit count: 221

Filed under:
|
|

I'm using the Content.Load() mechanism to load core game definitions from XML files. It works fine, though some definitions should be editable/moddable by the players. Since the content pipeline compiles everything into xnb files, that doesn't work for now.

I've seen that the inbuild XNA Song content processor does create 2 files. 1 xnb file which contains meta data for the song and 1 wma file which contains the actual data. I've tried to rebuild that mechanism (so that the second file is the actual xml file), but for some reason I can't use the namespace which contains the IntermediateSerializer class to load the xml (obviously the namespace is only available in a content project?).

How can I deploy raw, editable xml files and load them with Content.Load()?

© Game Development or respective owner

Related posts about XNA

Related posts about xna-content-pipeline