# Generate XML Object from Internal Table - Mainframe

**URL:** <https://techcommunity.softwareag.com/t/generate-xml-object-from-internal-table-mainframe/92049>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Web-and-XML-Technology\
**Created:** [November 10, 2009, 4:57pm UTC](https://techcommunity.softwareag.com/t/generate-xml-object-from-internal-table-mainframe/92049 "2009-11-10T16:57:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CompuNic](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@CompuNic](https://techcommunity.softwareag.com/u/CompuNic)\
**Post date:** [November 10, 2009, 4:57pm UTC](https://techcommunity.softwareag.com/t/generate-xml-object-from-internal-table-mainframe/92049/1 "2009-11-10T16:57:52Z")

</div>

Good Day

Can someone please help I need to create an XML Object on the mainframe which needs to be passed Entire X Broker and be accessed in Excel.

The Broker and Excel side is sorted. Is there an easy way to create an XML Object that can be passed from the mainframe without using a lot of compress statements?

i will appreciate any help in this regard.

Thanks

---

<div class="post-metadata">

**Author:** ![Steve\_Robinson](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/steve_robinson/32/107_2.png) [@Steve\_Robinson](https://techcommunity.softwareag.com/u/Steve_Robinson)\
**Post date:** [November 10, 2009, 5:23pm UTC](https://techcommunity.softwareag.com/t/generate-xml-object-from-internal-table-mainframe/92049/2 "2009-11-10T17:23:16Z")

</div>

Why a “lot”. You can use a single COMPRESS to create a string with basically unlimited values. You could even “hide” the possibly long COMPRESS by using copycode, or you could put the COMPRESS in a subprogram; but this would be quite inefficient compared to copycode.

steve

---

<div class="post-metadata">

**Author:** ![Finn\_the\_Dane1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/finn_the_dane1/32/132_2.png) [@Finn\_the\_Dane1](https://techcommunity.softwareag.com/u/Finn_the_Dane1)\
**Post date:** [November 10, 2009, 5:23pm UTC](https://techcommunity.softwareag.com/t/generate-xml-object-from-internal-table-mainframe/92049/3 "2009-11-10T17:23:27Z")

</div>

I would clearly go for an RPC solution where you expose a natural subprogram asl as a webservice using the webservice wrapper (Axis2).  
In this scenario you would make the natural-\>XML mapping in the EntireX mapping tool.  
Finn

---

<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:57pm UTC](https://techcommunity.softwareag.com/t/generate-xml-object-from-internal-table-mainframe/92049/4 "2021-04-02T14:57:43Z")

</div>


