??? CDATA tag inside attribute ???
--Keith H--
- Original Message -
From: Merrill, Jason [EMAIL PROTECTED]
Date: Thursday, March 16, 2006 12:08 pm
Subject: [Flashcoders] Question for XML Style Junkies
My XML file takes the following form:
?xml version=1.0 encoding=iso-8859-1?
I don't know a ton about xml, but I use p and p class=headline and br
/ and hr / and a href=http://somewhere.com;Somewhere.com website/a
tags directly in the xml file amongst text without problems. a separate css
file defines the elements. I've never used the CDATA tags or seen the need
for
,
Jason Merrill | E-Learning Solutions | icfconsulting.com
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Jim Berkey
Sent: Thursday, March 16, 2006 1:34 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Question for XML
You shouldn't use the CDATA tag in an XML attribute.
But if you are really desparate to put HTML formatting in XML attributes
You can use URL Encode the attribute values with an escape()
function... then have Flash unescape() the attributes when you load it
back into flash
However this is only
-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Thursday, March 16, 2006 1:46 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Question for XML Style Junkies
You shouldn't use the CDATA tag in an XML attribute.
But if you are really
CDATA is a type of node - can't put CDATA in an attribute.
Jim Kremens
On 3/16/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
You shouldn't use the CDATA tag in an XML attribute.
But if you are really desparate to put HTML formatting in XML attributes
You can use URL Encode the attribute
Kremens
Sent: Thursday, March 16, 2006 1:57 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Question for XML Style Junkies
CDATA is a type of node - can't put CDATA in an attribute.
Jim Kremens
On 3/16/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
You shouldn't use the CDATA tag
Sorry for late response, Jason.
I would use:
content
title![CDATA[SomebrHTML Text in brhere]]/title
body![CDATA[Lorem Ipsum Paragraph Text Here]]/body
/content
As Jim noticed, CDATA is a type of node .
--
Best regards,
GregoryN
8 matches
Mail list logo