Book a Demo

Author Topic: Model(/Linked) Document in XMI export  (Read 5174 times)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Model(/Linked) Document in XMI export
« on: October 06, 2011, 01:49:40 am »
EA exports linked documents as base64 encoded zip. So far so good. But each time I export such a linked document the encoding is different although nothing has changed. Why? Does anybody know?

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Model(/Linked) Document in XMI export
« Reply #1 on: October 06, 2011, 09:16:17 am »
I've noticed this when saving profiles with shape scripts - the last several bytes of encoded shape script are different every time. I believe this is because the encoder works with fixed-size chunks of memory (or multiples of), so it will encode unused memory beyond the end of the object. Nothing to worry about.
« Last Edit: October 06, 2011, 10:34:22 am by KP »
The Sparx Team
[email protected]

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Model(/Linked) Document in XMI export
« Reply #2 on: October 06, 2011, 06:33:22 pm »
Thanks Neil,
what I'm worrying about is the possibility to detect model changes by inspecting the XML export. I found a way around by inspecting the audit log (which by the way is not completely cleared by Clear Logs...). It would however be nice if the trailing chunk is set to definite values before zipping the data so the result is always the same.

q.