# How to write xml data?

**URL:** https://forum.kirupa.com/t/how-to-write-xml-data/80916
**Category:** Uncategorized
**Created:** [February 25, 2005, 9:21pm UTC](https://forum.kirupa.com/t/how-to-write-xml-data/80916 "2005-02-25T21:21:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tolgainam](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tolgainam](https://forum.kirupa.com/u/tolgainam)
#### Post date: [February 25, 2005, 9:21pm UTC](https://forum.kirupa.com/t/how-to-write-xml-data/80916/1 "2005-02-25T21:21:41Z")

</div>

images = new Array();  
xml\_file = “images.xml”;

xmlload = new XML();  
xmlload.ignoreWhite = true;  
xmlload.onLoad = function(ok) {  
if (ok) {  
count = this.firstChild.childNodes.length;  
for (var i = 0; i\<count; i++) {  
curNode = this.firstChild.childNodes\*;  
images\* = {path:curNode.childNodes[0].firstChild.nodeValue,link:curNode.childNodes[1].firstChild.nodeValue,caption:curNode.childNodes[2].firstChild.nodeValue};  
}  
boot();  
} else {  
trace(“Could not load “+xml\_file+”.”);  
}  
};  
xmlload.load(xml\_file);

I got the above code from Voets img menu, and I can get the values I want, but How can I make those sperate links as just text ?  
Thanks
