Artisan Développeur

Qualité, amélioration continue, agilité.

auto completion XFT (xml) with eclipse

Hello !

I have to do some XFT transaction for e-tourisme dev. I planed to use NuSoap in Symfony2, see my previous post.

I work with eclipse, and I want to have auto completion for my XFT transaction to enhance my dev (life) quality ^^

First thing to do is adding the xsd catalog to « eclipse xml catalog ».

Go « Windows -> preferences -> XML -> Catalog »
preference_xml_catalog

Add a new catalog, I choose to save the XSD file into my workspace.

preference_xml_catalog1

preference_xml_catalog2

To test it, I create a « New Xml file » with the assistant

preference_xml_catalog3

choose « Create XML file from an XML schema file »

preference_xml_catalog4

Choose my new catalog in the list (www.exchangefortravel.org)

preference_xml_catalog5

Choose without prefix (I’m not a xml guru, I don’t think I need prefix for my project, but it’s probably not the best answer for everyone).

If I don’t uncheck all checkboxes, eclipse is working, and do nothing, I suppose it’s the last option. But remember, I use this assistant just once, to see how the first line with the namespace is created.

preference_xml_catalog6-noPrefix

That’s it ! I’ve the first line, with the namespace. The generated tag is Access, I change it by « Transaction », I add <Control> and, when I open a new « < »  I see the auto completion.

preference_xml_catalog7

Feel free to ask, to comment, to critic, to enhance, to share 🙂

Nicolas

 

 

 

Leave a reply

Your email address will not be published.

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.