I don't think we allow invalid XML in the e4x stuff at least. You can try using the flash.xml.XMLDocument class which is the legacy XML object, I suppose it may do what you want.
Matt
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Daniel Nelson
Sent: Friday, March 03, 2006 11:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Parsing Unterminated xml elements in Flex 2.0 Beta
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.comSPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.