I'm an idiot, I was refering to it as attributeNode.xml rather than attributeNode.value which gives me the correct answer. D'oh -- James Hardy