Hi all,
 
I was wondering if you can parse unterminated XML elements in flex 2.0 beta.  For example I want to parse the following string "<flash:stream><root>" into a XMLNode.  I keep getting this error "XML parser failure: Unterminated element".  In flash 8, I can successfully parse unterminated XML, A flash 8 example below:
 
var myData:String = "<flash:stream><root>";
var xmlData:XML = new XML();
xmlData.ignoreWhite = this.ignoreWhite;
xmlData.parseXML(myData);
var firstNode:XMLNode = xmlData.firstChild ;
var nodeName:String = firstNode.nodeName.toLowerCase();
trace(nodeName); //outputs flash:stream
 
I can't seem to get this working with Action Script 3.0 in flex or get a rewrite with the new XML classes in AS3?
 
Anyone have any thoughts or solutions to this problem of mine?
 
-Dan


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to