Not finding the class type in XML

BrockS

New Member
I am attempting to load data in from an XML file so that users can edit data. I have followed everything that I have found, but I still get the error that the it cannot find the type "RPG.CharacterObjects.Character"XML\[code\]<?xml version="1.0" encoding="utf-8" ?><XnaContent> <!-- TODO: replace this Asset with your own XML asset data. --> <Asset Type="RPG.CharacterObjects.Character[]"> <Item> <name>Doc Thomas Light</name> </Item> <Item> <name>M'jolgnir</name> </Item> </Asset></XnaContent>\[/code\]The Character Class\[code\]using System;using System.Collections.Generic;using System.Linq;using System.Text;using RPG.WorldObjects;namespace RPG.CharacterObjects{ public class Character { public Area currentArea; public int charId; public String name; Traits characterTraits; List<Standing> standings; public void moveSelf(Area newArea) { Area.moveCharacter(this, currentArea, newArea); } }}\[/code\]
 
Back
Top