web stats
Mirth Community - View Single Post - Specifying xsi:nil="true" on XML element
View Single Post
  #1  
Old 09-17-2015, 06:08 PM
obsessio obsessio is offline
Mirth Guru
 
Join Date: Mar 2015
Location: Turkey
Posts: 177
obsessio is on a distinguished road
Angry Specifying xsi:nil="true" on XML element

I have XML to XML channel and I need to sent null values as null
(Stripe NameSpace option is unselected)
So I have inbound template which is below;
Code:
<mesaj xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <mesajBilgisi>
        <mesajTipi xsi:nil="true"/>
        <olayTipi xsi:nil="true"/>
        <mesajTarihi xsi:nil="true"/>
        <gonderenUygulama xsi:nil="true"/>
        <alanUygulama xsi:nil="true"/>
        <tesisAdi xsi:nil="true"/>
        <kontrolID xsi:nil="true"/>
    </mesajBilgisi>
    <masterBilgi>
        <aktif xsi:nil="true"/>
        <ilacMalzeme xsi:nil="true"/>
    </masterBilgi>
</mesaj>

and when I sent a message to channel, in transformation step "xsi:nil="true" properties removed from the message.

Code:
<mesaj xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <mesajBilgisi>
        <mesajTipi/>
        <olayTipi/>
        <mesajTarihi>20150918044728</mesajTarihi>
        <gonderenUygulama>Mirth</gonderenUygulama>
        <alanUygulama>IYS</alanUygulama>
        <tesisAdi>Tesis1</tesisAdi>
        <kontrolID>CID20150918044728458</kontrolID>
    </mesajBilgisi>
    <masterBilgi>
        <aktif/>
        <ilacMalzeme/>
    </masterBilgi>
</mesaj>
I think I missed something..

Channel attached
Mirth 3.3
Java 8.60
Attached Files
File Type: xml channel_example.xml (19.8 KB, 2 views)
Reply With Quote