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</www>
<email>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 !