Thanks for the response Matt.
I tried the legacy XMLDocument class, but it was a no go and got the same errors. Oh well, I will just have to catch these errors and parse the unterminated nodes manually.
-Dan
On 3/4/06, Matt Chotin [EMAIL PROTECTED] wrote:
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 NelsonSent: Friday, March 03, 2006 11:49 PMTo:
flexcoders@yahoogroups.comSubject: [flexcoders] Parsing Unterminated xml elements in Flex 2.0 Beta
Hi all,
I was wondering if you can parse unterminated XML elements inflex 2.0 beta. For example I want to parsethe following stringflash:streamroot intoaXMLNode. 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:streamroot;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 withAction Script 3.0in 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 ListFAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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
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
SPONSORED 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.