Maybe it's not possible.  At this point I'd go into the Tamirin code and see
how it's handling xml text nodes.  Another clue might be Alex's response to
a question I asked a while ago:
http://tech.groups.yahoo.com/group/flexcoders/message/114156

- Daniel Freiman

On Fri, Oct 24, 2008 at 1:06 PM, Mark Carter <[EMAIL PROTECTED]> wrote:

>
> Unfortunately not.
>
> I tried this:
>
> public static function setTextNodeText(textNode:XML, newText:String):void {
> var parentElement:XML = textNode.parent();
> parentElement.*[textNode.childIndex()] = newText;
> }
>
> The textNode's parent is non-null before calling this method, but null
> after. Its clear it has been replaced by a new text node...
>
>
> Daniel Freiman wrote:
> >
> > does this do it?
> >
> > parentElement.text()[index] = "newText";
> >
> > - Daniel Freiman
> >
> > On Fri, Oct 24, 2008 at 11:48 AM, Mark Carter <[EMAIL 
> > PROTECTED]<code%40mark.carter.name>
> >
> > wrote:
> >
> >>
> >> Hi - So, I know how to append a text node to an (parent) element, and
> how
> >> to
> >> replace a text node with a new text node (based on a specified string),
> >> but
> >> how do I set text on a text node?
> >>
> >> In my situation it is very important that the reference to the text node
> >> object is the same before and after this operation, so simply replacing
> >> the
> >> text node is not an option for me.
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Setting-text-on-a-text-node-in-e4x-tp20152621p20152621.html
> >> Sent from the FlexCoders mailing list archive at Nabble.com.
> >>
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Setting-text-on-a-text-node-in-e4x-tp20152621p20154052.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
>  
>

Reply via email to