Problemas com Caracteres especiais... com o código é simples
function myLoad (ok) { if (ok == true) { Publish (this.firstChild) } }function Publish (HeadlineXMLNode) { if (HeadlineXMLNode.nodeName.toUpperCase() == "BIOGRAFIA") { content = "" for ( story = HeadlineXMLNode.firstChild; story != null; story = story.nextSibling){ if (story.nodeName.toUpperCase() == "BIO") { lead = "" body = "" for ( element = story.firstChild; element != null; element = element.nextSibling){ if (element.nodeName.toUpperCase() == "CONTENIDO") { lead = element.firstChild.nodeValue } } content = content + lead scroll_txt.texto.htmlText = content } } } }headlineXML = new XML ()headlineXML.onLoad = myLoadheadlineXML.load("biografia.xml")não sei pq não aceita caracteres especiais...testei:System.useCodepage = true; (não deu certo)testei os simbolos:backspace %08 tab %09 linefeed %0A ....não deu certo!... podem me ajudar? obrigado
Discussão (5)
Carregando comentários...