Skip to Content
0
Nov 15, 2018 at 04:49 PM

How to add prefix in the Target XML File in PI Mapping ?

73 Views Last edit Nov 19, 2018 at 02:25 PM 2 rev

Hi Guys,

My Target XML file as below:

<?xml version="1.0" encoding="UTF-8"?>
<ns1:MT_Receiver xmlns:ns1="http://quest.vn/inv">
<ns1:root>
<ns1:Field1>test</ns1:Field1>
<ns1:Field2>B</ns1:Field2>
<ns1:Field3>C</ns1:Field3>
</ns1:root>
</ns1:MT_Receiver>

I want this file as below:

<?xml version="1.0" encoding="UTF-8"?>
<inv:MT_Receiver xmlns:ns1="http://quest.vn/inv">
<inv:root>
<inv:Field1>APPLE</inv:Field1>
<inv:Field2>BUBBLE</inv:Field2>
<inv:Field3>COCO</inv:Field3>
</inv:root>
</inv:MT_Receiver>

Please help me to get Structure.