# nodeValue won't show

**URL:** <https://forum.kirupa.com/t/nodevalue-wont-show/33150>\
**Category:** flash\
**Created:** [October 15, 2003, 8:30pm UTC](https://forum.kirupa.com/t/nodevalue-wont-show/33150 "2003-10-15T20:30:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stanley](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Stanley](https://forum.kirupa.com/u/Stanley)\
**Post date:** [October 15, 2003, 8:30pm UTC](https://forum.kirupa.com/t/nodevalue-wont-show/33150/1 "2003-10-15T20:30:14Z")

</div>

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\>
