# Removing White Spaces

**URL:** <https://techcommunity.softwareag.com/t/removing-white-spaces/59145>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Service-Orchestrator\
**Created:** [October 18, 2004, 9:11pm UTC](https://techcommunity.softwareag.com/t/removing-white-spaces/59145 "2004-10-18T21:11:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chechu](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@Chechu](https://techcommunity.softwareag.com/u/Chechu)\
**Post date:** [October 18, 2004, 9:11pm UTC](https://techcommunity.softwareag.com/t/removing-white-spaces/59145/1 "2004-10-18T21:11:28Z")

</div>

I have a message definition that converts a plain text file to XML. The fields are fixed length. Some of the fields have reserved too much space, and our customer wants that this unuseful caracters are “erased” from the resulting XML, so that the response message are the smallest posible. Are there any way to achieve this? I have read something about “Data Modifiers”, that says that you can write your own converver extending the class “com.sagasoftware.base.document.converter.TextModifier”, but I can

---

<div class="post-metadata">

**Author:** ![Jason](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@Jason](https://techcommunity.softwareag.com/u/Jason)\
**Post date:** [October 19, 2004, 8:41pm UTC](https://techcommunity.softwareag.com/t/removing-white-spaces/59145/2 "2004-10-19T20:41:24Z")

</div>

This is an error in the documentation. Extending this class is not supported in XML Gateways.   
  
Are you using your Gateway with Mediator? If yes then the spaces could be removed in a stylesheet invoked from a transformer step.  
  
Regards,  
  
Jason

---

<div class="post-metadata">

**Author:** ![Chechu](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@Chechu](https://techcommunity.softwareag.com/u/Chechu)\
**Post date:** [October 26, 2004, 5:53pm UTC](https://techcommunity.softwareag.com/t/removing-white-spaces/59145/3 "2004-10-26T17:53:44Z")

</div>

I told the customer this solution (Xslt), but he does not feel confortable with it. Note that the unuseful white spaces are sent in the SOAP response, and then Mediator must “load” this big document in memory. If the filtering could be done in the Gateways part, the size of the document would pass from Mbytes to Kbytes…

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:39pm UTC](https://techcommunity.softwareag.com/t/removing-white-spaces/59145/4 "2021-04-02T14:39:40Z")

</div>


