Skip to main content
replaced http://gamedev.stackexchange.com/ with https://gamedev.stackexchange.com/
Source Link

So recently i've been changing my XML files that i'm using in-game, to add in a bit more data to the files but i've also changed the way in which i load & save files, by now using the XDocument API. *Previous Thread/Topic: Xna, writing XML </Asset> end elementXna, writing XML </Asset> end element

So now that i'm all done, i've come to trying out the new files in my new project and i have a strange error: There was an error while deserializing intermediate XML. Input string was not in a correct format.

Oddly though, this at line 13: http://pastebin.com/jMtNwV8N

In all honesty i don't know what to say. And to what exactly the problem is, i'm having a slight hunch that it could be something to-do with the way the files are saved: http://pastebin.com/Q2pJye5B

Problem is that my initial thinking right now is that it might have to be something to-do with the '\t' or '\n' literals, but then there's these literals in the actual data lines i.e lines 11 & 12 so it wouldn't all of a sudden chuck me an error at line 13

Guess i'm just a bit mystified by this and to what the problem might be?

Any help greatly appreciated :)!

Edit: Well just to test it out then, i removed all the '\t' & '\n' from the saving code. And re-tried it then, unfortunately i'm still getting the same error :/ Same place, with the error occurring at the ending element of Rect.

So recently i've been changing my XML files that i'm using in-game, to add in a bit more data to the files but i've also changed the way in which i load & save files, by now using the XDocument API. *Previous Thread/Topic: Xna, writing XML </Asset> end element

So now that i'm all done, i've come to trying out the new files in my new project and i have a strange error: There was an error while deserializing intermediate XML. Input string was not in a correct format.

Oddly though, this at line 13: http://pastebin.com/jMtNwV8N

In all honesty i don't know what to say. And to what exactly the problem is, i'm having a slight hunch that it could be something to-do with the way the files are saved: http://pastebin.com/Q2pJye5B

Problem is that my initial thinking right now is that it might have to be something to-do with the '\t' or '\n' literals, but then there's these literals in the actual data lines i.e lines 11 & 12 so it wouldn't all of a sudden chuck me an error at line 13

Guess i'm just a bit mystified by this and to what the problem might be?

Any help greatly appreciated :)!

Edit: Well just to test it out then, i removed all the '\t' & '\n' from the saving code. And re-tried it then, unfortunately i'm still getting the same error :/ Same place, with the error occurring at the ending element of Rect.

So recently i've been changing my XML files that i'm using in-game, to add in a bit more data to the files but i've also changed the way in which i load & save files, by now using the XDocument API. *Previous Thread/Topic: Xna, writing XML </Asset> end element

So now that i'm all done, i've come to trying out the new files in my new project and i have a strange error: There was an error while deserializing intermediate XML. Input string was not in a correct format.

Oddly though, this at line 13: http://pastebin.com/jMtNwV8N

In all honesty i don't know what to say. And to what exactly the problem is, i'm having a slight hunch that it could be something to-do with the way the files are saved: http://pastebin.com/Q2pJye5B

Problem is that my initial thinking right now is that it might have to be something to-do with the '\t' or '\n' literals, but then there's these literals in the actual data lines i.e lines 11 & 12 so it wouldn't all of a sudden chuck me an error at line 13

Guess i'm just a bit mystified by this and to what the problem might be?

Any help greatly appreciated :)!

Edit: Well just to test it out then, i removed all the '\t' & '\n' from the saving code. And re-tried it then, unfortunately i'm still getting the same error :/ Same place, with the error occurring at the ending element of Rect.

added 236 characters in body
Source Link
dan369
  • 993
  • 1
  • 10
  • 20

So recently i've been changing my XML files that i'm using in-game, to add in a bit more data to the files but i've also changed the way in which i load & save files, by now using the XDocument API. *Previous Thread/Topic: Xna, writing XML </Asset> end element

So now that i'm all done, i've come to trying out the new files in my new project and i have a strange error: There was an error while deserializing intermediate XML. Input string was not in a correct format.

Oddly though, this at line 13: http://pastebin.com/jMtNwV8N

In all honesty i don't know what to say. And to what exactly the problem is, i'm having a slight hunch that it could be something to-do with the way the files are saved: http://pastebin.com/Q2pJye5B

Problem is that my initial thinking right now is that it might have to be something to-do with the '\t' or '\n' literals, but then there's these literals in the actual data lines i.e lines 11 & 12 so it wouldn't all of a sudden chuck me an error at line 13

Guess i'm just a bit mystified by this and to what the problem might be?

Any help greatly appreciated :)!

Edit: Well just to test it out then, i removed all the '\t' & '\n' from the saving code. And re-tried it then, unfortunately i'm still getting the same error :/ Same place, with the error occurring at the ending element of Rect.

So recently i've been changing my XML files that i'm using in-game, to add in a bit more data to the files but i've also changed the way in which i load & save files, by now using the XDocument API. *Previous Thread/Topic: Xna, writing XML </Asset> end element

So now that i'm all done, i've come to trying out the new files in my new project and i have a strange error: There was an error while deserializing intermediate XML. Input string was not in a correct format.

Oddly though, this at line 13: http://pastebin.com/jMtNwV8N

In all honesty i don't know what to say. And to what exactly the problem is, i'm having a slight hunch that it could be something to-do with the way the files are saved: http://pastebin.com/Q2pJye5B

Problem is that my initial thinking right now is that it might have to be something to-do with the '\t' or '\n' literals, but then there's these literals in the actual data lines i.e lines 11 & 12 so it wouldn't all of a sudden chuck me an error at line 13

Guess i'm just a bit mystified by this and to what the problem might be?

Any help greatly appreciated :)!

So recently i've been changing my XML files that i'm using in-game, to add in a bit more data to the files but i've also changed the way in which i load & save files, by now using the XDocument API. *Previous Thread/Topic: Xna, writing XML </Asset> end element

So now that i'm all done, i've come to trying out the new files in my new project and i have a strange error: There was an error while deserializing intermediate XML. Input string was not in a correct format.

Oddly though, this at line 13: http://pastebin.com/jMtNwV8N

In all honesty i don't know what to say. And to what exactly the problem is, i'm having a slight hunch that it could be something to-do with the way the files are saved: http://pastebin.com/Q2pJye5B

Problem is that my initial thinking right now is that it might have to be something to-do with the '\t' or '\n' literals, but then there's these literals in the actual data lines i.e lines 11 & 12 so it wouldn't all of a sudden chuck me an error at line 13

Guess i'm just a bit mystified by this and to what the problem might be?

Any help greatly appreciated :)!

Edit: Well just to test it out then, i removed all the '\t' & '\n' from the saving code. And re-tried it then, unfortunately i'm still getting the same error :/ Same place, with the error occurring at the ending element of Rect.

Source Link
dan369
  • 993
  • 1
  • 10
  • 20

Issue with loading XML

So recently i've been changing my XML files that i'm using in-game, to add in a bit more data to the files but i've also changed the way in which i load & save files, by now using the XDocument API. *Previous Thread/Topic: Xna, writing XML </Asset> end element

So now that i'm all done, i've come to trying out the new files in my new project and i have a strange error: There was an error while deserializing intermediate XML. Input string was not in a correct format.

Oddly though, this at line 13: http://pastebin.com/jMtNwV8N

In all honesty i don't know what to say. And to what exactly the problem is, i'm having a slight hunch that it could be something to-do with the way the files are saved: http://pastebin.com/Q2pJye5B

Problem is that my initial thinking right now is that it might have to be something to-do with the '\t' or '\n' literals, but then there's these literals in the actual data lines i.e lines 11 & 12 so it wouldn't all of a sudden chuck me an error at line 13

Guess i'm just a bit mystified by this and to what the problem might be?

Any help greatly appreciated :)!