# Generate an XML-File on a Mainframe

**URL:** <https://techcommunity.softwareag.com/t/generate-an-xml-file-on-a-mainframe/61717>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Web-and-XML-Technology\
**Created:** [November 22, 2006, 3:23pm UTC](https://techcommunity.softwareag.com/t/generate-an-xml-file-on-a-mainframe/61717 "2006-11-22T15:23:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christian1](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@Christian1](https://techcommunity.softwareag.com/u/Christian1)\
**Post date:** [November 22, 2006, 3:23pm UTC](https://techcommunity.softwareag.com/t/generate-an-xml-file-on-a-mainframe/61717/1 "2006-11-22T15:23:05Z")

</div>

Hi,

we are using Nat 4.1.4 without any EntireX or Tamino, but we now have the task to generate XML-Files on our Mainframe.

Of couse we can do that with “compress” - way.

But is there an easyer posibilty? My vision is that i only have to define the xml-structure in an LDA and the Natural-Command generates the xml-file out of the LDA-structure and the variable names.  
Example:  
the LDA:  
1 catalog  
2 catalog\_id (a) dynamic  
2 article (1:\*)  
3 article\_id (a) dynamic  
3 article\_title (a) dynamic

and the Data:  
catalog\_id := “BMECAT 1.2”  
article\_id(1) := “123”  
article\_title(1) := “test”  
article\_id(2) := “456”  
article\_id(2) := “test2”

should result in the xml-file:  
  
\<catalog\_id\>BMECAT 1.2\</catalog\_id\>

 123 test 456 test2 

Is there a simple way to reach this aim? :?

Has anyone a good tutorial for the xml-features with natural 4.1 ?

Christian

---

<div class="post-metadata">

**Author:** ![Finn\_the\_Dane](https://avatars.discourse-cdn.com/v4/letter/f/c57346/32.png) [@Finn\_the\_Dane](https://techcommunity.softwareag.com/u/Finn_the_Dane)\
**Post date:** [November 22, 2006, 4:55pm UTC](https://techcommunity.softwareag.com/t/generate-an-xml-file-on-a-mainframe/61717/2 "2006-11-22T16:55:27Z")

</div>

Hi Christian,  
You should take a look at the “XML Toolkit”, and the part about  
“Using a Natural Data Area as Data Source”.  
In 414 you can generate some copycode for creating the XML.  
If you have SPOD there is a GUI-wizard for doing this (I’m not sure it was in 61 but at least there is in 6.2)  
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:40pm UTC](https://techcommunity.softwareag.com/t/generate-an-xml-file-on-a-mainframe/61717/3 "2021-04-02T14:40:57Z")

</div>


