Skip to Content
0
Mar 15, 2019 at 05:46 AM

Java Mapping remove xsi:nil='true' from payload

2164 Views Last edit Mar 15, 2019 at 05:47 AM 2 rev

Hello all,

I am a new in PI, there need to remove character xsi:nil='true'.

I tried to use Graphic mapping and XSLT mapping for this. However, these two methods need to verify the validity of the XML file first.

Below are xml structure, could someone help this?

Many thanks in advance,

Br,

Nero.

<ns1:ConnectException
xmlns:ns1='http://test.com/connect/_2007_08/'>


    <ns2:errorCode
xmlns:ns2='http://test.com/services/exception/_2006_12_15/exception'>POL33F2060</ns2:errorCode>


    <ns3:errorDescription
xmlns:ns3='http://test.com/services/exception/_2006_12_15/exception'>User
ID ZZJ12FJ81 is not authorised for policy 31444</ns3:errorDescription>


   
<ns4:serverErrorReferenceToken
xmlns:ns4='http://test.com/services/exception/_2006_12_15/exception' xsi:nil='true'/>


   
<ns5:values
xmlns:ns5='http://test.com/services/exception/_2006_12_15/exception'>


        <ns5:value>ZZJFJ814</ns5:value>


       
<ns5:value>314635</ns5:value>


   
</ns5:values>


</ns1:ConnectException>