SXI Forum

A place to collect usefull tips, tricks and implementation strategies.

You are not logged in.

#1 30-05-2023 14:00:49

KevinM
Moderator
Registered: 21-11-2018
Posts: 13

Adding a default prefix to Oxygen

Xlayer will automatically assign a prefix known as 'default' to the URI 'http://www.sxi.co.za/XMLSchema' to simplify xpath expressions used in the configuration, as this eliminates the need to add the 'http://www.sxi.co.za/XMLSchema' URI within the xpath expression.

To get Oxygen to automatically generate this prefix when xpaths are copied, and to get Oxygen to automatically recognize this prefix when copying xpath expressions from the Xlayer logs to Oxygen do the following:

1/ Start Oxygen
2/ Open the Xpath/XQuery Builder (Window-Show View-XPath/XQuery Builder)
3/ Find the little settings cog click on that and go into options
4/ Click the New button to create a new Default prefix-namespace mapping
5/ Set the Prefix to - default
6/ Set the Namespace URI to -  http://www.sxi.co.za/XMLSchema

Offline

Board footer

Powered by FluxBB