I'm connecting to the soap service in my project. The reference file generated gives me the following xml result, but these xsi: nil = "true" fields, if they are empty, I want to completely remove them. Is it possible?
<SELECT_INVENTORY_PART>
<PART_NO>151-040860304-0002</PART_NO>
<DESCRIPTION xsi:nil="true" />
<CONTRACT xsi:nil="true" />
<PLANNER_BUYER xsi:nil="true" />
<CATCH_UNIT_MEAS xsi:nil="true" />
<INPUT_UNIT_MEAS_GROUP_ID xsi:nil="true" />
<PRIME_COMMODITY xsi:nil="true" />
<SECOND_COMMODITY xsi:nil="true" />
<ASSET_CLASS xsi:nil="true" />
<PART_STATUS xsi:nil="true" />
<ABC_CLASS xsi:nil="true" />
<FREQUENCY_CLASS_DB xsi:nil="true" />
<LIFECYCLE_STAGE_DB xsi:nil="true" />
<ACCOUNTING_GROUP xsi:nil="true" />
<PART_PRODUCT_CODE xsi:nil="true" />
<PART_PRODUCT_FAMILY xsi:nil="true" />
<TYPE_DESIGNATION xsi:nil="true" />
</SELECT_INVENTORY_PART>
[System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
public string DESCRIPTION
{
get
{
return this.dESCRIPTIONField;
}
set
{
this.dESCRIPTIONField = value;
}
}