Re: What is #text??

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

From: Dave (dave5398_at_btinternet.com)
Date: 10/06/04


Date: Wed, 6 Oct 2004 18:18:23 +0100


"Daniel Kirsch" <Iwillnotread_daniel@gmx.de> wrote in message
news:ck177c$j1o$00$2@news.t-online.com...
> 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

Apologies, you are correct. nodeValue does indeed display the actual text,
while nodeName displays #text.



Relevant Pages

  • Re: What is #text??
    ... Dave wrote: ... > 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)