Book a Demo

Author Topic: Can you import XML schema to EA?  (Read 5354 times)

gregjs

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Can you import XML schema to EA?
« on: December 20, 2004, 06:21:31 am »
How do I import an XML into EA???

EA does not rec an XMD file on inport, on import try of xml files from the schema ... get "Error root package not found at XML content .....".

Test was FpML - public online at: http://www.fpml.org/spec/2004/rec-fpml-4-0-2004-04-02/

This schema can be viewed easily in Visual Studio.

Do not know if there is a way to get EA import to work.

Trying 2x ... I am evaluating EA for a large software developer ... in a C# .NET shop.

Thanks in advance ... Greg

thomaskilian

  • Guest
Re: Can you import XML schema to EA?
« Reply #1 on: December 20, 2004, 06:49:44 am »
« Last Edit: December 20, 2004, 06:59:13 am by thomaskilian »

gregjs

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Can you import XML schema to EA?
« Reply #2 on: December 20, 2004, 08:53:15 am »
I'm new to this ... didnt get an answer - so I started a new thread.

I would like some help here ... if EA can do this ... thanks.

thomaskilian

  • Guest
Re: Can you import XML schema to EA?
« Reply #3 on: December 21, 2004, 12:25:52 am »
Probably it's not clear what your actual problem is. The link you passed does not show the file but passes you to a "FpML Registration" which I will not accept. So there's no chance in finding out what the problem is.  Maybe you can export a small EA file and compare the produced XML with your XMD. (I'm a bit confused about all the X-files. It should be XMI ???)

benc

  • EA Administrator
  • EA User
  • *****
  • Posts: 200
  • Karma: +0/-0
    • View Profile
Re: Can you import XML schema to EA?
« Reply #4 on: December 21, 2004, 06:42:47 pm »
Hello Greg,

In answer to the question/topic :

Quote
Can you import XML schema to EA?


Unfortunately, not supported yet. We have received a number of requests to this effect and do plan to support reverse engineering of XML schema in future - no ETA at this stage though.

Regards,
Ben

gregjs

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Can you import XML schema to EA?
« Reply #5 on: December 22, 2004, 06:23:13 am »
Ben:

Thanks for your reply -via forum and private email.

This is a  very useful thing to do - and I hope EA can work out a way to support this in  the near future.

In the mean time ... is it possible to do a work around by converting an XMD schema file to an XMI???   Does this make any sense?

Thanks again ... Greg

benc

  • EA Administrator
  • EA User
  • *****
  • Posts: 200
  • Karma: +0/-0
    • View Profile
Re: Can you import XML schema to EA?
« Reply #6 on: December 22, 2004, 02:13:30 pm »
Hello Greg,

Conversion to XMI is a possibility, but you'd need a utility to convert the XSD to XMI. There may be some existing stylesheets to do this (though I'm not aware of any), or you may need to roll your own.

Alternatively, you could look at using EA's automation interface to import the schemas directly.

Finally, a user reported to me some success in getting his XML editor to map the schema to java code and then importing this into EA. Something of a contortion, but appeared to suit his needs ...

Regards,
Ben

Arthur

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Can you import XML schema to EA?
« Reply #7 on: December 22, 2004, 11:02:47 pm »
We are using a (free!) Microsoft tool called XSDObjectGenerator to generate C# code that is in turn reversed into EA. Works OK mostly. It has some limitations but all our schemas worked just fine.
Roundtripping XSD in EA would be a nice feature though.

gregjs

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Can you import XML schema to EA?
« Reply #8 on: December 23, 2004, 05:21:57 am »
Arthur:

Thanks!

I will track down MS XSDObjectGenerator.  This sounds like a very good start.

Agree the real EA roundtrip would be very nice ... but if XSD code gen is available ... then we can do EA reverse engineer of XSD ... and we do have a workable work around.

... Greg