Error 1 Xml Is Not In The Xna Intermediate Format
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Problem in loading XML data to XNA up vote 0 down vote favorite I am trying to use an XML file to store my high score, here is my high score class [Serializable] public struct HighScoreData { public string[] PlayerName; public int[] Score; public int[] Level; public int Count; public HighScoreData(int count) { PlayerName = new string[count]; Score = new int[count]; Level = new int[count]; Count = count; } } And here is my XML file :
gamesplaytest Xbox games education education cataloggame developmentlibrary documentationdeveloper talksacademia resources supportdownloadspartner offerings community forums Xbox LIVE Indie Games Forums » XNA Game Studio » XNA Framework Content Pipeline » Questions about loading Xml files My Discussions Active Discussions Not Read Advanced Sort Discussions: Oldest to newest Newest to oldest Previous Discussion Next Discussion Page 1 of 1 (8 posts) Questions about loading Xml files Last post 8/17/2009 11:56 PM by peterdev. 7 replies. 7/17/2008 8:31 PM Yuan XNA (0) Posts 1 Questions about loading Xml files Reply Quote 1. If I use standard XML file and add that to Content Pipeline, there will be an error "XML is not in the XNA intermediate format. Missing XnaContent root element". If I dont't use http://stackoverflow.com/questions/4584834/problem-in-loading-xml-data-to-xna Xna intermediate format, where should I put the file? in "bin/Release" folder? 2. If I use Xna intermediate format - add "XnaContent" and "Asset Type = MyNamespace.MyClass", there is an error "There was an error while deserializing intermediate XML. Cannot find type MyClass" even if I dont load the Xml file. Can anybody help me? Thanks
7/18/2008 1:36 PM In reply to Frisker (0) Posts 4 Re: Questions about loading Xml files http://xboxforums.create.msdn.com/forums/t/14406.aspx Reply Quote I have the exact same problem, It works perfectly with all the classes in System, I suppose you have to write your own content pipeline thingy to support your own structs / classes. I hope someone will enlighten us soon :) 7/18/2008 3:37 PM In reply to Lachhh (0) Posts 26 Re: Questions about loading Xml files Reply Quote I had the same error too, but, what i've done was to put my xml in the content pipeline, go to properties, put compile = "none" and copy to output = "copy if newer" So your xml won't be compiled at the build time, and when you build, he'll gonna copy it in the bin/release or bin/debug only if it's newer. Then, you can access it with your content pipeline , it works on PC and on Xbox, i've tested it. Hope that it helps Lachhh 7/18/2008 6:50 PM In reply to BShields (0) Posts 432 Re: Questions about loading Xml files Reply Quote Yuan:1. If I use standard XML file and add that to Content Pipeline, there will be an error "XML is not in the XNA intermediate format. Missing XnaContent root element". If I dont't use Xna intermediate format, where should I put the file? in "bin/Release" folder?In the properties of the XML file (wDu kan ändra inställningen nedan. Learn more You're viewing YouTube in Swedish. You can change this preference below. Stäng Ja, https://www.youtube.com/watch?v=T3X0bWxiSRY behåll den Ångra Stäng Det här videoklippet är inte tillgängligt. VisningsköKöVisningsköKö Ta bort allaKoppla från Läser in ... Visningskö Kö __count__/__total__ Ta reda på varförStäng C# Monogame RPG Made http://community.monogame.net/t/proper-way-to-use-intermediateserializer-with-pipeline-tool/2577 Easy Tutorial 3 - Xml Serialization CodingMadeEasy PrenumereraPrenumerantSäg upp19 92319 tn Läser in ... Läser in ... Arbetar ... Lägg till i Vill du titta på det här igen senare? error 1 Logga in om du vill lägga till videoklippet i en spellista. Logga in Dela Mer Rapportera Vill du rapportera videoklippet? Logga in om du vill rapportera olämpligt innehåll. Logga in Transkription Statistik 17 066 visningar 115 Gillar du videoklippet? Logga in och gör din röst hörd. Logga in 116 6 Gillar du inte videoklippet? Logga in och gör error 1 xml din röst hörd. Logga in 7 Läser in ... Läser in ... Transkription Det gick inte att läsa in den interaktiva transkriberingen. Läser in ... Läser in ... Rankning kan göras när videoklippet har hyrts. Funktionen är inte tillgänglig just nu. Försök igen senare. Publicerades den 20 juni 2013In this tutorial we will be implementing a class to load in xml files. Hope you enjoy :)Website: http://www.codingmadeeasy.caIf you like my content feel free to donate! https://www.paypal.com/ca/cgi-bin/web...Also feel free to like my group on facebook: https://www.facebook.com/codingmadeeasyYou can also follow me on twitter: http://www.twitter.com/codingmadeeasyAnd bbm: 763B6529 Kategori Utbildning Licens Standardlicens för YouTube Visa mer Visa mindre Läser in ... Annons Automatisk uppspelning När automatisk uppspelning är aktiverad spelas ett föreslaget videoklipp upp automatiskt. Kommer härnäst C# Monogame RPG Made Easy Tutorial 4 - (Recap)Xml Serialization - Längd: 11:08. CodingMadeEasy 11 665 visningar 11:08 C# Monogame RPG Made Easy Tutorial 2 - GameScreen - Längd: 12:13. CodingMadeEasy 24 816 visningar 12:13 C# Monogame RPG Made Easy Tutorial 5 - Images - Längd: 20:35. CodingMadeEasy 15
But i don't understand how I have to use the Pipeline Tool with my Xml data files. Under Xna, my Xml data files were compiled with the IntermediateSerializer. Files are built as follows: