trace("nodeType :"+child.nodeType);

trace("nodeValue :"+child.nodeValue);


should read

trace("nodeType :"+child.firstChild.nodeType);
trace("nodeValue :"+child.firstChild.nodeValue);


On 6/20/07, Charles Parcell <[EMAIL PROTECTED]> wrote:

I believe the entire thing has to be inside the CDATA.

var xmlRecord = new XML("<![CDATA[<html>" + "some arbitrary string" +
"</html>]]>");

Charles P.


On 6/20/07, Andrew Sinning <[EMAIL PROTECTED]> wrote:
>
> How can I "load in a schema that has a CDATA node" if AS2 doesn't
> support it?  Where do I get the valid schema?
>
> In theory, the following is creating an xml object with a CDATA node,
> but it doesn't appear to work:
>
> var xmlRecord = new XML("<html><![CDATA[" + "some arbitrary string" +
> "]]></html>");
> var child = xmlRecord.firstChild;
> trace("nodeType :"+child.nodeType);
> trace("nodeName :"+child.nodeName);
> trace("nodeValue :"+child.nodeValue);
>
> /*
> ouput:
> nodeType :1
> nodeName :html
> nodeValue :null
> */
>
>
>
>
>
> David Ngo wrote:
>
> >AS2 will not support CDATA nodes. You should load in a schema that has
a
> >CDATA node first, then use that schema to write your text nodes to the
> CDATA
> >node and pass the instance of the schema w/ the CDATA intact. I've had
to
> >use this work-around for another project I worked on a year ago.
> >
> >
> >
> >
> >
> >
> _______________________________________________
> [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
>
_______________________________________________
[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

_______________________________________________
[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