Stable and secure XML

  • Thread starter Thread starter Arda Coskun
  • Start date Start date
A

Arda Coskun

Hi,

I created an XML via XmlTextWriter and everything goes well. I made the XML
file as a normal source not
embedded one. However, I have another problem, when user shut downs the
phone and reopens it, my XML goes away?! I want it not to lose last changes
since it will store the game settings.

How can I solve it?

In addition to this, how can I block user not to change the inside of XML
for highscore table xml file.

Thanks in advance.

Arda
 
Arda,

It seems like you need to catch the OnClose event and flush your buffers at
that point. As for security - you could encrypt your XML file so only your
app can read/write to it.
 
And as for the persistence - store your xml under documents folder - it is
pesisted between restarts
 
Thanks both Alex and Ginny, I solve the persistence problem and big part of
cyryption.

Can you provide me a link that shows how to store highscore of players in an
xml file?

Kind Regards,
 
I solved it mates, thanks again.

Arda Coskun said:
Thanks both Alex and Ginny, I solve the persistence problem and big part of
cyryption.

Can you provide me a link that shows how to store highscore of players in an
xml file?

Kind Regards,
 
Back
Top