Skip to main content
added 395 characters in body; edited title
Source Link
dan369
  • 993
  • 1
  • 10
  • 20

Edit:

So i'm going to rephrase the question a bit, seeing as now i think know how i'm going to read this data. Looking at this example as my guide: http://forums.create.msdn.com/forums/p/53404/323877.aspx

This is pretty much what i'm currently doing, and to be clear and show you guys: http://pastebin.com/GxqQcBDg

Thats, that's how imi'm loading themy data. 

So looking at that guys example from his post, he has a similar layout, his "Enemies" can equal my element "Animated_Tiles" and then his "Items" could be equal to my "Tile" objects, atleastat least if you compare my data to his they look extremely similar, and yes i did update the Data as Richard Marskell - Drackir suggested, But i'm wondering if i can have "Type" definitions like the guy has in his example, to show what i mean:

  <Animated_Tiles Type="System.Collections.Generic.List[Namespace.Class]">

Can that be done? Or is it only the "Asset" element that can have the Type definition? Currently this is what my new data layout looks like: http://pastebin.com/i42166ZQ

But currently, it seems to start reading it but i get this error by the first "Tile" Element. So the only difference i see between his & my layouts are that he has the Asset containing the List definition whereas i have "Animated_Tiles". So i'm unsure can any element can have the "Type=Blah" definition?

Edit:

So i'm going to rephrase the question a bit, seeing as now i think how i'm going to read this data. Looking at this example as my guide: http://forums.create.msdn.com/forums/p/53404/323877.aspx

This is pretty much what i'm currently doing, and to be clear and show you guys: http://pastebin.com/GxqQcBDg

Thats how im loading the data. So looking at that guys example from his post, he has a similar layout, his "Enemies" can equal my element "Animated_Tiles" and then his "Items" could be equal to my "Tile" objects, atleast if you compare my data to his they look extremely similar, and yes i did update the Data as Richard Marskell - Drackir suggested, But i'm wondering if i can have "Type" definitions like the guy has in his example, to show what i mean:

  <Animated_Tiles Type="System.Collections.Generic.List[Namespace.Class]">

Can that be done? Or is it only the "Asset" element that can have the Type definition? Currently this is what my new data layout looks like: http://pastebin.com/i42166ZQ

Edit:

So i'm going to rephrase the question a bit, seeing as now i think know how i'm going to read this data. Looking at this example as my guide: http://forums.create.msdn.com/forums/p/53404/323877.aspx

This is pretty much what i'm currently doing, and to be clear and show you guys: http://pastebin.com/GxqQcBDg, that's how i'm loading my data. 

So looking at that guys example from his post, he has a similar layout, his "Enemies" can equal my element "Animated_Tiles" and then his "Items" could be equal to my "Tile" objects, at least if you compare my data to his they look extremely similar, and yes i did update the Data as Richard Marskell - Drackir suggested, But i'm wondering if i can have "Type" definitions like the guy has in his example, to show what i mean:

  <Animated_Tiles Type="System.Collections.Generic.List[Namespace.Class]">

Can that be done? Or is it only the "Asset" element that can have the Type definition? Currently this is what my new data layout looks like: http://pastebin.com/i42166ZQ

But currently, it seems to start reading it but i get this error by the first "Tile" Element. So the only difference i see between his & my layouts are that he has the Asset containing the List definition whereas i have "Animated_Tiles". So i'm unsure can any element can have the "Type=Blah" definition?

added 395 characters in body; edited title
Source Link
dan369
  • 993
  • 1
  • 10
  • 20

Help Reading this Data in XML Deserializeras a List (ContentReader)

WellEdit:

So i'm justgoing to rephrase the question a bit stuck on how, seeing as now i should go about readingthink how i'm going to read this data in. Looking at this example as my deserializerguide: http://pastebin.com/tL6PLg6Ahttp://forums.create.msdn.com/forums/p/53404/323877.aspx

AsThis is pretty much what i'm currently doing, and to be clear and show you seeguys: http://pastebin.com/GxqQcBDg

Thats how im loading the data. So looking at that guys example from his post, each new Tilehe has it's own numbera similar layout, his "Enemies" can equal my element "Animated_Tiles" and then the stuff inside the tile is pretty basichis "Items" could be equal to read. But it's tryingmy "Tile" objects, atleast if you compare my data to get a nice method of reading eachhis they look extremely similar, and yes i did update the Data as Richard Marskell Tile(Current Tile Number Being Read)- Drackir suggested, section that i'm having difficult in approaching.

SoBut i'm wondering on a method of going about readingif i can have "Type" definitions like the tile sections. I've never actually tried reading data from my XML filesguy has in this way beforehis example, so it's new to me and currentlyshow what i can't get a nice way of doing it mean:/. Thanks for any help! It's much appreciated

  <Animated_Tiles Type="System.Collections.Generic.List[Namespace.Class]">

Can that be done? Or is it only the "Asset" element that can have the Type definition? Currently this is what my new data layout looks like:). http://pastebin.com/i42166ZQ

Help Reading this Data in XML Deserializer

Well i'm just a bit stuck on how i should go about reading this data in my deserializer: http://pastebin.com/tL6PLg6A

As you see, each new Tile has it's own number, and then the stuff inside the tile is pretty basic to read. But it's trying to get a nice method of reading each Tile(Current Tile Number Being Read) section that i'm having difficult in approaching.

So i'm wondering on a method of going about reading the tile sections. I've never actually tried reading data from my XML files in this way before, so it's new to me and currently i can't get a nice way of doing it :/. Thanks for any help! It's much appreciated :).

Help Reading this Data in XML as a List (ContentReader)

Edit:

So i'm going to rephrase the question a bit, seeing as now i think how i'm going to read this data. Looking at this example as my guide: http://forums.create.msdn.com/forums/p/53404/323877.aspx

This is pretty much what i'm currently doing, and to be clear and show you guys: http://pastebin.com/GxqQcBDg

Thats how im loading the data. So looking at that guys example from his post, he has a similar layout, his "Enemies" can equal my element "Animated_Tiles" and then his "Items" could be equal to my "Tile" objects, atleast if you compare my data to his they look extremely similar, and yes i did update the Data as Richard Marskell - Drackir suggested, But i'm wondering if i can have "Type" definitions like the guy has in his example, to show what i mean:

  <Animated_Tiles Type="System.Collections.Generic.List[Namespace.Class]">

Can that be done? Or is it only the "Asset" element that can have the Type definition? Currently this is what my new data layout looks like: http://pastebin.com/i42166ZQ

Tweeted twitter.com/#!/StackGameDev/status/167752134543155200
Source Link
dan369
  • 993
  • 1
  • 10
  • 20

Help Reading this Data in XML Deserializer

Well i'm just a bit stuck on how i should go about reading this data in my deserializer: http://pastebin.com/tL6PLg6A

As you see, each new Tile has it's own number, and then the stuff inside the tile is pretty basic to read. But it's trying to get a nice method of reading each Tile(Current Tile Number Being Read) section that i'm having difficult in approaching.

So i'm wondering on a method of going about reading the tile sections. I've never actually tried reading data from my XML files in this way before, so it's new to me and currently i can't get a nice way of doing it :/. Thanks for any help! It's much appreciated :).