Re: [flexcoders] really simple xml problem (I hope)
Aha - yes I knew that really!! (thanks a lot, make sense now but when I was reading the docs I didn't work that out). Giles On 10/25/07, Daniel Freiman <[EMAIL PROTECTED]> wrote: > > heightNode.text()[0] = 5; > > - Dan Freiman > > On 10/25/07, Giles Roadnight <[EMAIL PROTECTED]> wrote: > > > > This is a seemingly very simple problem but so far I have only come up > > with a complex solution. > > > > I have the following xml snippet: > > > > > > 84 > > > units="mm">10.69204152249135 > > > > > > How do I change the value of the height node (i.e. from 10.6 to 5)? I > > have tried just setting heightNode = 5 but I get a casting error > > (cannot convert a number to XML). > > > > I want to set nodeValue but the XML object does not have this parameter. > > > > > > -- Giles Roadnight http://giles.roadnight.name
Re: [flexcoders] really simple xml problem (I hope)
heightNode.text()[0] = 5; - Dan Freiman On 10/25/07, Giles Roadnight <[EMAIL PROTECTED]> wrote: > > This is a seemingly very simple problem but so far I have only come up > with a complex solution. > > I have the following xml snippet: > > > 84 > units="mm">10.69204152249135 > > > How do I change the value of the height node (i.e. from 10.6 to 5)? I > have tried just setting heightNode = 5 but I get a casting error > (cannot convert a number to XML). > > I want to set nodeValue but the XML object does not have this parameter. > > >
[flexcoders] really simple xml problem (I hope)
This is a seemingly very simple problem but so far I have only come up with a complex solution. I have the following xml snippet: 84 10.69204152249135 How do I change the value of the height node (i.e. from 10.6 to 5)? I have tried just setting heightNode = 5 but I get a casting error (cannot convert a number to XML). I want to set nodeValue but the XML object does not have this parameter.