DoNotEmit Processing Instructions in Generic XML

The Generic XML <?DoNotEmit?> tag allows you to hide levels that exist for the exported values or references from different products, by displaying data on the same level. The tag surrounding the DoNotEmit instruction is excluded from the output.

Objects

The following SalesItem and children are selected for export.

Template

These templates allow you to compare the difference that using DoNotEmit has on the output.

Without DoNotEmit

Copy
<Families>
   <Family ID="[?Target ID?]">
      <?Record?>
      <Name><?Target Name?></Name>
   <Children>
   <Child>
 
      <?MultiTarget?>
      <ID><?Target ID?></ID>
      <Name><?Target Name?></Name>
   </Child>
   </Children>
   </Family>
</Families>    

With DoNotEmit

Copy
<Families>
   <Family ID="[?Target ID?]">
      <?Record?>
      <Name><?Target Name?></Name>
   <Children>
   <Child>
      <?DoNotEmit?>
      <?MultiTarget?>
      <ID><?Target ID?></ID>
      <Name><?Target Name?></Name>
   </Child>
   </Children>
   </Family>
</Families>    

Mapping

Mapping for export is the same for both templates.

  1. After mapping the SalesItem ID and Name, use the Data Path - Child option to map the Child target.

  1. Map the Child's ID and Name.

Results

The following results are achieved when exporting using the sample templates and mapping above.

Without DoNotEmit

With DoNotEmit