Re: What is #text??

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Daniel Kirsch (Iwillnotread_daniel_at_gmx.de)
Date: 10/06/04


Date: Wed, 06 Oct 2004 18:41:17 +0200

Dave wrote:
> For text nodes, the nodeName
> actually displays "#text" while nodeValue is null.

nodeValue should be the text of that textnode. If no text is defined for
that node, the value should be not null but an empty string ("") - which
sometimes makes a difference :-)

Daniel



Relevant Pages

  • Re: What is #text??
    ... >> For text nodes, the nodeName ... > nodeValue should be the text of that textnode. ...
    (microsoft.public.scripting.jscript)
  • Re: Looping XML
    ... node that has some value it informs me "null" on NodeValue and the next ... loop the NodeName says: "#text" and shows me the correct value...? ... The technical explanation is that the text of a node is in fact a node ...
    (microsoft.public.vb.general.discussion)
  • Re: XML<-> JSON conversion. What do you think?
    ... nodeName: "e", ... I think that a JSON converter, in this case, can join strings: ...
    (comp.lang.javascript)