Last modified by Erik Bakker on 2023/01/24 15:10

From version 40.1
edited by Carlijn Kokkeler
on 2022/10/05 11:50
Change comment: There is no comment for this version
To version 41.1
edited by Carlijn Kokkeler
on 2022/10/05 11:54
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -108,6 +108,16 @@
108 108  By defining the prefix of the namespace (i.e. sys, cdm, ns) you can refer to this prefix while reading and writing your XPath.
109 109  Let's return to our original example, only this time the **input** message has a namespace:
110 110  
111 +{{code language="xml"}}
112 +<sys:Projects xmlns:sys="http://www.academy.emagiz.com/ns/mlacade/system/1.0/">
113 + <sys:Project>
114 + <sys:ID>1</sys:ID>
115 + </sys:Project>
116 + <sys:Status>
117 + <sys:ID>1</sys:ID>
118 + </sys:Status>
119 +</sys:Projects>
120 +{{/code}}
111 111  [[image:Main.Images.Microlearning.WebHome@crashcourse-platform-create-transformation-xpath-basic--namespace-input-message.png]]
112 112  
113 113  As you can see the notation has slightly changed. A prefix has occurred before each element and attributes called sys. To separate the prefix from the name of the element or attribute a colon (:) is used.