I read Senocular’s tutorial on XML and found it really useful.
But I still have a problem:
When I try to get some text from a node into a textfield by using .nodeValue I get ‘null’.
When I use nodeType on that node the result is “1”.
I understand that a textnode should result in value “3”. But how come this isn’t the case here?
My xml looks like:
<?xml version=“1.0” encoding=“iso-8859-1”?>
<portfolio>
<item id=“1”>
<category>Illustration</category>
<filename>fileone.jpg</filename>
</item>
<item id=“2”>
<category>Website design</category>
<filename>filetwo.jpg</filename>
</item>
</portfolio>