Book a Demo

Author Topic: XMI import of documentation text  (Read 3471 times)

robject

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
  • Small talk
    • View Profile
XMI import of documentation text
« on: December 08, 2011, 12:22:36 am »
I am working on a tool to generate XMI to import into EA.
An issue I am not yet able to tackle is the documentation of model elements, that is the text you see in the Notes of a selected element. EA allows you to make this into rich text (emphasis, colours etc.). However the format of this in the exported XMI is not clear to me. What format should I use if I want to import rich text into EA?

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: XMI import of documentation text
« Reply #1 on: December 08, 2011, 04:47:16 pm »
I think you will find it is simple html



(image as produced by spell checker !)
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: XMI import of documentation text
« Reply #2 on: December 08, 2011, 06:08:29 pm »
The EA API has an operation to get from RTF to the internal (html-like) format:

Repository.GetFieldFromFormat (string Format, string Text)

Geert