quarta-feira, 5 de março de 2014

Sterling B2B Integrator XML namespaces on maps


1) There are there ways to set namespace while using a Sterling maps for output XMLs

To use the different approaches first hit the XML element in cause and hit the tab namespace. On this exercise we are using the root element but this applies to any element.


  • Using a full namespace with prefixes on tags
Use this namespace should get the value of the namespace description string.
The namespace prefix must be defined



All elements children of the element in cause will get the prefix unless a new namespace is selected
The result is an XML with following structure

  • Using a full namespace without prefixes on tags
To achieve this is quite simple instead of setting the namespace description  on Use this namespace one should rather set the namespace prefix it self.

The result is an XML with prefix identification but without actually inserting it onto the XML tags.

  • Insert a default namespace
To insert the default namespace is as simple as not identifying any prefix on the map, although not that much intuitive... 


And result.



2) While reading the namespace can also be specified the image bellow shows how, any of the previous samples, could be read. Again for each tag there can be a correspondent namespace, and it can never be more than 1.


Hope this helps cheers!

Sem comentários:

Enviar um comentário