# Help about add url in my xml file

**URL:** <https://forum.kirupa.com/t/help-about-add-url-in-my-xml-file/240747>\
**Category:** Uncategorized\
**Created:** [October 5, 2007, 6:16pm UTC](https://forum.kirupa.com/t/help-about-add-url-in-my-xml-file/240747 "2007-10-05T18:16:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeto05](https://avatars.discourse-cdn.com/v4/letter/z/8e8cbc/32.png) [@zeto05](https://forum.kirupa.com/u/zeto05)\
**Post date:** [October 5, 2007, 6:16pm UTC](https://forum.kirupa.com/t/help-about-add-url-in-my-xml-file/240747/1 "2007-10-05T18:16:51Z")

</div>

Hello Everybody!  
I just want add `www` and `email`(mailto) link in my xml file …

the xml code:  
\*\*  
\<inventors\>  
\<person\>  
\<name\>Thomas Edison\</name\>  
\<comment\>Inventor of many things such as the incandescent lightbulb.\</comment\>  
\<www\>[http://www.kirupa.com](http://www.kirupa.com)\</www\>  
\<email\>[email@email.com](mailto:email@email.com)\</email\>  
\</person\>  
\</inventors\>  
\*\*

the fla code:  
\*\*  
function loadXML(loaded) {  
if (loaded) {  
\_root.inventor = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;  
\_root.comments = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;  
\_root.www = this.firstChild.childNodes[0].childNodes[2].firstChild.nodeValue;  
\_root.email = this.firstChild.childNodes[0].childNodes[3].firstChild.nodeValue;  
name\_txt.text = \_root.inventor;  
comment\_txt.text = \_root.comments;  
www\_txt.text = \_root.www;  
email\_txt.text = \_root.email;  
} else {  
content = “file not loaded!”;  
}  
}  
xmlData = new XML();  
xmlData.ignoreWhite = true;  
xmlData.onLoad = loadXML;  
xmlData.load(“data.xml”);  
\*\*

im new with xml codes … and i need your Helps ! ^^  
i hope someone knows … help me with this!  
Thanks !
