I have the above
gives me 5 as I would expect
changes AAAAA to XXXXX as I would expect, as does using firstChild
does nothing and printing out the nodeValue gives NULL. I am a bit rusty with this stuff and am trying to access the 2nd node with value BBBB, or I am up a conceptual gum tree here? ie change BBBBB to XXXX. I know I can give it an id and access it that way but can I access as a childnode of n1?