# Generating xml dynamically

**URL:** https://forum.kirupa.com/t/generating-xml-dynamically/289101
**Category:** Uncategorized
**Created:** [May 26, 2009, 11:37am UTC](https://forum.kirupa.com/t/generating-xml-dynamically/289101 "2009-05-26T11:37:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![brndn](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@brndn](https://forum.kirupa.com/u/brndn)
#### Post date: [May 26, 2009, 11:37am UTC](https://forum.kirupa.com/t/generating-xml-dynamically/289101/1 "2009-05-26T11:37:54Z")

</div>

Hi there  
SO I have a class that handles chunks of xml.  
the issue is I am wanting these chunks to be defined externally of the xml handler class and rather passed to the class. for example

myXML.SECTION.HEALTH\_MANAGMENT.CONTENT.GALLERY\_OBJECT

I would like to make HEALTH\_MANAGMENT a variable.

kinda like

public function XmlGallery(callTarget:XmlNode) {

myXML.SECTION.+callTarget+.GALLERY\_OBJECT

if this makes sense.
