Pretty new to xml/flash integration and need to display quotes/apostrophes:
I’m declaring like this:
function loadData() {
quoteXML = new XML();
quoteXML.load("quote.xml");
quoteXML.ignoreWhite = true;
quoteXML.onLoad = function(success) {
var i = Math.round(Math.random()(quoteXML.firstChild.childNodes.length-1));
//trace(i);
quote = (quoteXML.firstChild.childNodes.childNodes[0].childNodes[0]);
author = (quoteXML.firstChild.childNodes*.childNodes[1].childNodes[0]);
};
}
loadData();
//
//
machine.onRelease=function(){
loadData();
}
And then nodes are as so:
<QUOTE>
<TEXT>
“I do not feel obliged to believe that the same’’”"’’ God who has endowed us with sense, reason, and intellect has intended us to forgo their use."
</TEXT>
<AUTHOR>
Galileo Galilei
</AUTHOR>
</QUOTE>
The quotes in there are just for testing- it all works fine except I get the "e displayed-
Any help would be GREATLY appreciated!
Thanks in advance!