http://www.switchont...ontent-pipeline
But I'm finding myself unable to serialize a char array in any way that the compiler will accept. I'm trying to read into the following class:
public class Level
{
public char[] map;
}
And I'm using this bit of XML as a test:
<?xml version="1.0" encoding="utf-8" ?>
<XnaContent>
<Asset Type="SharedContent.Level">
<map>
<char>13</char>
</map>
</Asset>
</XnaContent>
Placing elements under a <char> tag is how the compiler serialized my char array, but when trying to load XML I've written this way, I'm given There was an error while deserializing intermediate XML. 'Element' is an invalid XmlNodeType. Line 5, position 8.
Apparently both elements and text are invalid, so I'm at a loss for what it actually is looking for. Can someone show me where I'm going wrong?
This post has been edited by Ntwiles: 19 March 2012 - 04:59 AM

New Topic/Question
Reply



MultiQuote







|