I'm pretty mad about this... dont know what is going on.
Im parsing XML file that looks like this:
<something>
__<item att="something">text<item>
__<item att="something">text<item>
__<item att="something">text <span class="some">inside text</span> text<item>
</something>
its because "inside text" needs to have other color than text outside span.
im using external css file loaded into flash.
parsing part goes like this:
Expand|Select|Wrap|Line Numbers
- function processData(thisXML):Void{
- var titles:Array = new Array();
- var texts:Array = new Array();
- for(var aNode:XMLNode = thisXML.firstChild.firstChild; aNode != null; aNode = aNode.nextSibling){
- titles.push(aNode.attributes.att);
- texts.push(aNode.childNodes);
- }
- trace(texts.length);
- constructData( parameters);
- }
like this : ,<span class="some">inside text</span>, , yes its adding commas around span part....
if i trace whole xml file, output is without commas... so i assume problem is with childNodes part.
it makes me mad...
i've tried <![CDATA[]]> but it makes same thing and disable styleSheet on it.
need help... thanks