Hey guys,
I'm facing a problem in my 2D Level Editor game. I create a level and save each object's position, texture, size, geometry and body (using Farseer Physics). When it comes to loading this level this message is shown:("There is an error in XML document (40, 10).") and inner exception ("Object reference not set to an instance of an object.").
Can anybody please give me a hint?
Thanks
Loading
Javeed M ShaikhPosted Oct 10, 2011, 5:52 PM
It is very difficult to give you any hint towards the solution as we have no knowledge about the XML structure/data and your code. My guess is you are trying to access a node which does not exist or trying to access the data from the node which is null.
Please do not forget to mark "Accepted Answer".