Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm creating an Xbox application and I have this problem with the content pipeline. Loading .xnb files is not a problem but I can't seem to find any helpful tutorials on writing via the content pipeline. I want to write an XML whenever the user presses a custom made "save" button. I've searched the web for "saving game sate" etc. but so far I haven't found a solution for my case.

So, summarized: is there a way to write data (in XML format) via the content pipeline, if my Save() method is called?


share|improve this question
up vote 2 down vote accepted


You can't save data on the xbox via the content pipeline.

You can however use other methods (standard .net once you've got a file stream). See here for an example:

See also:

The content pipeline is for build time files (they are compiled).
See What is the content pipeline (MSDN).

It works well when you want to perform a lot of pre-processing to go from your original file (maybe an image file) to your runtime class (like a Texture2D with mipmap levels), but that's not the only way to load files on the xbox (so you don't have to save to the XNB format).

share|improve this answer
Thank you very much for your fast response. I didn't know that it was impossible to write via the content pipeline, I could have been searching for ever for an answer. I will try it with the code on stackoverflow your link provided, Thanks! – DenEddy Mar 16 '12 at 9:27
A small note - you can write via the content pipeline on windows providing you have Game Studio Express installed (i.e. for developers, but not players). People often use this for creating level editors. – George Duckett Mar 16 '12 at 9:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.