I should add that with the space betwen the <node> and <![CDATA it
works in the schema editor, but still does not work when viewing
data. Used the same exact data to edit the schema as is being used
when testing live. Going to try the method that Miles Thompson
recommended in the morning.
Ron
On Nov 9, 2005, at 12:44 AM, Ron Wagner wrote:
Hi Muzak,
Very interesting... I plugged in your sample xml and it worked.
After looking for significant differences between yours and mine, I
found that
<?xml version="1.0" ?>
<content>
<node> <![CDATA[Some cdata text.]]></node>
<node> <![CDATA[Some cdata text.]]></node>
<node> <![CDATA[Some cdata text.]]></node>
<node> <![CDATA[Some cdata text.]]></node>
</content>
works, but
<?xml version="1.0" ?>
<content>
<node><![CDATA[Some cdata text.]]></node>
<node><![CDATA[Some cdata text.]]></node>
<node><![CDATA[Some cdata text.]]></node>
<node><![CDATA[Some cdata text.]]></node>
</content>
does not. Only difference being the space between <node> and <!
[CDATA. I can't find any requirement for there being a space before
a CDATA, so unless someone else knows that the space is required it
looks like a bug in Flash.
Thanks,
Ron
On Nov 8, 2005, at 11:07 PM, Muzak wrote:
CDATA should be no problem, even for the schema.
It should be listed as String. Make sure your xml is valid.
The following simple xml:
<?xml version="1.0" ?>
<content>
<node>
<![CDATA[Some cdata text.]]>
</node>
<node>
<![CDATA[Some cdata text.]]>
</node>
<node>
<![CDATA[Some cdata text.]]>
</node>
<node>
<![CDATA[Some cdata text.]]>
</node>
</content>
Looks like this when loaded as schema:
<-> results : XML
<-> content : Object
<-> node : Array
<-> [n] : String
regards,
Muzak
----- Original Message -----
From: "Ron Wagner" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Wednesday, November 09, 2005 2:03 AM
Subject: [Flashcoders] XML and CData
Hi all,
Using Flash 8 Pro.
I am a little confused on whether or not Flash can import data in
a CDATA through XML. I am just getting started with XML in
Flash, so not sure if it's something I am doing or not, but I
can get all my data in my XML except what is in a CDATA. When
loading the schema in the Component Editor for an XMLConnector,
the elements with CDATA data have type <empty>. The other
elements have their proper types.
I've Googled my butt off today and found some people say that
CDATA is supported, some say it is not supported, some say it is
only supported on the way in and not the way out. What I'm
trying to do is load data into an XMLConnector, then bind to a user
interface component such as a DataGrid, eventually with a
DataSet component in between.
Can CData be used through an XMLConnector? Do I have to do
things manually via a new XML(), etc., or will even that not work?
Thanks,
Ron Wagner
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders