Author Topic: Base64 Encoding in XMI Export  (Read 3249 times)

SvenK

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Base64 Encoding in XMI Export
« on: February 13, 2013, 03:05:04 am »
Hello,

the baseline feature is basically an XMI export of the current model. We use the XMIs to compare different baselines using external tools. However, we faced the problem that Base64 encoded data (e.g. Linked Document) always changes slightly, although no changes where done. It is always the first and the two last lines of the encoded data which changed. Is there some kind of timestamp stored? How can I avoid this?

How is the data stored? I thought it would be plain RTF. However, I can't open a file containing the decoded data.

Another strange behavior I got with the xmi.id of stereotypes. The ID of e.g. stereotype "master document" always changes also when creating a baseline.

Any hints on this?

Sven

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Base64 Encoding in XMI Export
« Reply #1 on: February 13, 2013, 03:23:55 am »
I think this is connected with zipping the XMI contents. I once asked a similar question (but can't remember the context) where I was told that from a Sparxian. What you have to do is to unzip the base64 and compare the raw file.

Just if you haven't done that: either unzip via some self-made program or via Notepad++: copy/paste the base64 content into an empty buffer; select all; choose decode base64 from the mime tools; save as tmp.zip; open the zip and look into the contained file str.dat.

q.

SvenK

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Base64 Encoding in XMI Export
« Reply #2 on: February 14, 2013, 01:21:36 am »
Thanks. That helped. The difference is due to different modify times of the str.dat file archived in the zip.

Now I have to figure out how to avoid changing GUIDs for (default) stereotypes.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Base64 Encoding in XMI Export
« Reply #3 on: February 14, 2013, 02:13:19 am »
Quote
The difference is due to different modify times of the str.dat file archived in the zip.
That's it! Maybe Sparx could fix that to a certain date (say the first release date of EA or Geoffrey's birthday). It isn't used anyway.

q.