How to Edit an xml file

Discussion in 'alt.windows7.general' started by Dave C, May 13, 2013.

  1. On Fri, 17 May 2013 20:34:46 -0500, Char Jackson wrote:

    > On Wed, 15 May 2013 11:56:50 -0700, "Gene E. Bloch" <>
    > wrote:
    >
    >>On Wed, 15 May 2013 12:13:03 -0400, Paul wrote:
    >>
    >>> At the very end of the file, I see 0x00 0x0a 0x00 0x00 0x00,
    >>> and you probably can't create that with a text editor. When
    >>> reassembling the file and bolting it back together, check
    >>> that the postamble is correct. I don't know why there is a
    >>> Unicode zero down there. A text editor shows that character
    >>> as a square. If saving out the file happens to remove it,
    >>> you can put that back with the hex editor.

    >>
    >>I use this hex editor:
    >>
    >>http://mh-nexus.de/en/
    >>
    >>And that was pretty good detective work, Paul!

    >
    > Ahem, didn't we collectively discuss this very same topic a few months ago
    > in this group? I clearly remember pointing out that the actual xml resides
    > at the end of the file. Oh well, I guess if it's worth discovering, it's
    > worth discovering again. ;-)


    I don't recall the earlier discussion, but I have to agree with your
    last remark anyway.

    Now if only my friends would agree that a story worth telling once is
    worth telling twice...or thrice...or...

    --
    Gene E. Bloch (Stumbling Bloch)
     
    Gene E. Bloch, May 18, 2013
    #21
    1. Advertisements

  2. On Fri, 17 May 2013 20:34:46 -0500, Char Jackson wrote:

    > On Tue, 14 May 2013 11:07:43 -0700, "Gene E. Bloch" <>
    > wrote:
    >
    >>On Tue, 14 May 2013 12:58:21 -0400, SC Tom wrote:
    >>
    >>> "The input is not a valid Base-64 string as it contains a non-base 64
    >>> character, more than two padding characters, or a non-white space character
    >>> among the padding characters."
    >>>
    >>> Maybe that's not it :)

    >>
    >>OK, try ROT13 next.
    >>
    >>:)

    >
    > Sometimes, when I need extra super security, I use *DOUBLE* ROT13! The
    > average person never even notices.


    A while back there was someone on some newsgroup (I forget who & which)
    whose sig file was "Contents protected by double ROT13". I loved it...

    But of course, I happen to have the app to decrypt it.

    --
    Gene E. Bloch (Stumbling Bloch)
     
    Gene E. Bloch, May 18, 2013
    #22
    1. Advertisements

  3. Dave C

    mechanic Guest

    On Sat, 18 May 2013 15:56:57 -0700, Gene E. Bloch wrote:

    > A while back there was someone on some newsgroup (I forget who &
    > which) whose sig file was "Contents protected by double ROT13". I
    > loved it..


    Isn't that a simple rotation still? Part of a 'ring' of operations
    or somesuch (rusty algebra). No serious crypto at all.
     
    mechanic, May 19, 2013
    #23
  4. mechanic wrote:
    > On Sat, 18 May 2013 15:56:57 -0700, Gene E. Bloch wrote:
    >
    >> A while back there was someone on some newsgroup (I forget who &
    >> which) whose sig file was "Contents protected by double ROT13". I
    >> loved it..

    >
    > Isn't that a simple rotation still? Part of a 'ring' of operations
    > or somesuch (rusty algebra). No serious crypto at all.


    Saying you've used "Double ROT13" or "I ROT13ed it twice" is a joke?

    ROTting twice just outputs the plaintext.

    FYI, ROT13 isn't intended as crypto except for things like plot spoilers.

    --
    Tciao for Now!

    John.
     
    John Williamson, May 19, 2013
    #24
  5. Dave C

    Ken Blake Guest

    On Sun, 19 May 2013 11:58:05 +0100, mechanic <>
    wrote:

    > On Sat, 18 May 2013 15:56:57 -0700, Gene E. Bloch wrote:
    >
    > > A while back there was someone on some newsgroup (I forget who &
    > > which) whose sig file was "Contents protected by double ROT13". I
    > > loved it..

    >
    > Isn't that a simple rotation still? Part of a 'ring' of operations
    > or somesuch (rusty algebra). No serious crypto at all.



    I'm afraid that you missed his joke. Double ROT13 returns the text to
    what it started with, so there is no change and no protection at all.
    <g>
     
    Ken Blake, May 19, 2013
    #25
  6. Dave C

    mechanic Guest

    On Sun, 19 May 2013 08:05:49 -0700, Ken Blake wrote:

    > On Sun, 19 May 2013 11:58:05 +0100, mechanic <>
    > wrote:
    >
    >> On Sat, 18 May 2013 15:56:57 -0700, Gene E. Bloch wrote:
    >>
    >>> A while back there was someone on some newsgroup (I forget who &
    >>> which) whose sig file was "Contents protected by double ROT13". I
    >>> loved it..

    >>
    >> Isn't that a simple rotation still? Part of a 'ring' of operations
    >> or somesuch (rusty algebra). No serious crypto at all.

    >
    > I'm afraid that you missed his joke. Double ROT13 returns the text to
    > what it started with, so there is no change and no protection at all.
    > <g>


    Ooops - I was thinking of the general case and forgot the specifics
    of ROT13.
     
    mechanic, May 19, 2013
    #26
  7. On Sun, 19 May 2013 20:27:21 +0100, mechanic wrote:

    > On Sun, 19 May 2013 08:05:49 -0700, Ken Blake wrote:
    >
    >> On Sun, 19 May 2013 11:58:05 +0100, mechanic <>
    >> wrote:
    >>
    >>> On Sat, 18 May 2013 15:56:57 -0700, Gene E. Bloch wrote:
    >>>
    >>>> A while back there was someone on some newsgroup (I forget who &
    >>>> which) whose sig file was "Contents protected by double ROT13". I
    >>>> loved it..
    >>>
    >>> Isn't that a simple rotation still? Part of a 'ring' of operations
    >>> or somesuch (rusty algebra). No serious crypto at all.

    >>
    >> I'm afraid that you missed his joke. Double ROT13 returns the text to
    >> what it started with, so there is no change and no protection at all.
    >> <g>

    >
    > Ooops - I was thinking of the general case and forgot the specifics
    > of ROT13.


    Well, if you don't mind too much, we had a bit of fun with your
    response.

    And as you well know, every one of us has done worse somewhere along the
    line :)

    --
    Gene E. Bloch (Stumbling Bloch)
     
    Gene E. Bloch, May 19, 2013
    #27
  8. Dave C

    fox

    Joined:
    Dec 26, 2016
    Messages:
    1
    Likes Received:
    0
    I found a way to edit the results of the Windows7 FreeCell statistics file for cases where the number of digits in the number of games does not change. For example, you can change 1 to 9, or 100 to 750, but not 1 to 750. Increasing the number of digits will result in the FreeCell program resetting your scores to 0, even if you add a NUL character (hex 00) after the digit. (Decreasing may be okay if you delete a digit and the following NUL character, but I did not test this.) I used the following steps.
    Reset scores.
    Win first game.
    Edit some of the fields at the end of the file “FreeCellSettings.xml” (found at C:\Users\_your computer’s name_\AppData\Local\Microsoft Games\FreeCell) with a HEX editor.
    Change the “1” to “9” in the <GamesPlayed>1</GamesPlayed>, <GamesWon>1</GamesWon>, <MaxWinStreakLength>1</MaxWinStreakLength>, and <CurrStreakLength>1</CurrStreakLength> fields, and make verify the other two nearby fields say <MaxLoseStreakLength>0</MaxLoseStreakLength> and <WonlastGame>true</WonlastGame>. Be careful to leave the NUL characters intact.
    Win second game. Stats now show 10 games won.
    Edit the file “FreeCellSettings.xml” again, changing the “10”s to “99”.
    Win third game. Stats now show 100 games won.
    Do this as much as you like. Perhaps there is a limit, I did not bother to find it. Perhaps someone with more time and curiosity will find it and let us know.
    Note, immediately after an edit of the file “FreeCellSettings.xml”, the stats will not be correct in the “Games” explorer screen. Opening and closing FreeCell will update these stats in the Explorer window.
    The attached file shows the edit from 100 to 366.
     

    Attached Files:

    fox, Dec 27, 2016
    #28
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Grenou

    WLM - Edit a stationery file - question

    Grenou, Nov 2, 2009, in forum: alt.windows7.general
    Replies:
    5
    Views:
    1,756
    Grenou
    Nov 2, 2009
  2. FiOS-Dave

    OECONFIG.XML

    FiOS-Dave, Dec 4, 2009, in forum: alt.windows7.general
    Replies:
    1
    Views:
    1,817
  3. Oldster

    XML on Windows 7

    Oldster, Jun 20, 2010, in forum: alt.windows7.general
    Replies:
    3
    Views:
    4,159
    Tim Slattery
    Jun 21, 2010
  4. bgraham

    Problems viewing XML content

    bgraham, Jul 1, 2011, in forum: General Discussion
    Replies:
    1
    Views:
    2,090
    bgraham
    Jul 1, 2011
  5. Wittyservant7
    Replies:
    4
    Views:
    2,269
    Wittyservant7
    Jul 21, 2011
Loading...