# Can't Parse Mötley Crüe XML node!

**URL:** <https://forum.kirupa.com/t/cant-parse-motley-crue-xml-node/167982>\
**Category:** flash\
**Created:** [November 2, 2005, 10:44pm UTC](https://forum.kirupa.com/t/cant-parse-motley-crue-xml-node/167982 "2005-11-02T22:44:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hillcreative](https://avatars.discourse-cdn.com/v4/letter/h/e47774/32.png) [@hillcreative](https://forum.kirupa.com/u/hillcreative)\
**Post date:** [November 2, 2005, 10:44pm UTC](https://forum.kirupa.com/t/cant-parse-motley-crue-xml-node/167982/1 "2005-11-02T22:44:11Z")

</div>

I don’t seem to be able to parse and display the special characters in Mötley Crüe. Whenever those special LATIN-1 characters show up it trashes the node. I can’t format the document as UTP-8 but I can format as ISO 8859-1 which will display Mötley Crüe when dispalyed in IE

XML Data  
\<?xml version=“1.0” encoding=“ISO-8859-1”?\>  
\<songData\>  
\<artist\>\<![CDATA[Mötley Crüe]]\>\</artist\>  
\<title\>\<![CDATA[Afraid]]\>\</title\>  
\</songData\>

AS Script to parse (snippet)

```auto
 // XML data retrival and parse from Server
doc = new XML();
doc.ignoreWhite = true;
doc.load(pRadio + iInfo + nocache);
doc.onLoad = function() {
//Clean undefined nodes with space for appearance and assign text values
if(doc.firstChild.childNodes[0].firstChild.nodeValue == undefined) {
_level0.lcdText.lArtist = "";
} else {
_level0.lcdText.lArtist = doc.firstChild.childNodes[0].firstChild.toString();
}
if(doc.firstChild.childNodes[1].firstChild.nodeValue == undefined) {
_level0.lcdText.lTitle = "";
_level0.panelBox.infoBoxCD._visible = false;
_level0.panelBox.labelCD._alpha = 50;
_level0.panelBox.infoBoxGenre._visible = false;
_level0.panelBox.labelGenre._alpha = 50;
_level0.panelBox.infoBoxYear._visible = false;
_level0.panelBox.labelYear._alpha = 50;
_root.songData.sCdfile.text ="";
_root.songData.sCdimage ="/album_art/default.jpg";
} else {
_level0.lcdText.lTitle = doc.firstChild.childNodes[1].firstChild.toString();
_root.songData.sCdfile.text = doc.firstChild.childNodes[8].firstChild.nodeValue;
_level0.panelBox.infoBoxCD._visible = true;
_level0.panelBox.labelCD._alpha = 100;
_root.songData.sCdimage = doc.firstChild.childNodes[9].firstChild.nodeValue;
}

```

I am losing hope and I’m afraid my bad karma is going to jkeep the band apart!

Mitch
