Crazy talk my arse!  ;-)

I've used XML with HTML and CSS to drive several commercial products I've
developed.  So long as all tags are correctly terminated it makes sense to
use XML; where do you think XHTML came from?

XML is, by nature, a portable document that can be used and interpreted by
other programs.  You only use CDATA as a last resort as it can be a real
pain to process in some other languages.  Flash Player doesn't even
recognise CDATA nodes as a type; only element and text nodes.

With XML, you know the structure of the document you're working with as it
is defined at some point.  If I know that all data inside my content element
is XHTML then I only need to fetch its contents or rather its child nodes.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Geoff
Stearns
Sent: 10 August 2006 17:31
To: Flashcoders mailing list
Subject: Re: [Flashcoders] HTML in XML

this advice is all crazy talk.

the proper way to do it is to use CDATA tags.



On Aug 9, 2006, at 12:04 PM, Ryan Potter wrote:

> Another way that works pretty well is to do a join on the child nodes.
>
> So your trace would look like this:
>
> trace(newsNode.childNodes[i].childNodes.join(""));
>
> As long as your html is xml compliant (<br/> instead of <br>) it will
> work just fine.
>

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to