Book a Demo

Author Topic: Rookie question about XML import  (Read 5113 times)

opladii_opladaa

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Rookie question about XML import
« on: March 17, 2016, 02:44:23 am »
I have rookie question about XML import. I have a custom XML file (actually export from soapUI) with simple structure:
<root>
<element>Name 1</element>
<element>Name 2</element>
</root>
I would like to import this XML into EA to create a bunch of EA elements (under one package) with the name taken from <element>.  Other parameters (like element type) should be defaulted.

How can I do it? Is there ready-made templates for soapUI exports? Is there a step-by-step tutorial suitable for beginners? I am using EA 8.  Thanks forehand.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Rookie question about XML import
« Reply #1 on: March 17, 2016, 08:32:33 am »
There's no "custom xml" import in EA.

I'd recommend writing some code to read the XML and use the API to create the elements you want.

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Rookie question about XML import
« Reply #2 on: March 18, 2016, 02:40:47 pm »
I'm using EA 8.
I'm not sure XML had been invented when EA 8 was current, I'd recommend upgrading to the latest version.
Disclaimer: No financial interest.
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: Rookie question about XML import
« Reply #3 on: March 18, 2016, 03:28:14 pm »
Hi,

I agree with skiwi, version 8 is really ancient and there are lot of interesting new feature in the next version that make it worthwhile to upgrade.
But even in the latest version there is no custom xml import feature.

You can do as Simon suggests, of you could try to get the data from the xml into an excel file and import from there.
I have written a free VBA excel importer that you can download from my website.

http://bellekens.com/2015/10/24/simple-vba-excel-to-ea-importer-v4/

Geert