HasChildNodes does not work properly

  • Thread starter Thread starter Brian
  • Start date Start date
B

Brian

? nChild.OuterXml
"<LocaleId>{76135713-CB5C-4116-925F-1E69254A775B}</LocaleId>"

? nChild.HasChildNodes
True

TEXT IS NOT A NODE!!!

Please explain.

TIA -
Brian
 
Because if you traverse the tree using FIRSTCHILD and NEXTSIBLING, you
do not get the text type nodes, only the element type nodes.

Make sense? If a Node can be text, attribute, etc. (which I know from
my XSLT coding) then why does NEXTSIBLING jump to the next text node?
It should be called "NextSiblingElement"?

Thanks,
Brian
 
Hi Brian

In addition to Jay B.

Have a look at "innertext" and "innerHtml"

I hope this helps

Cor
 
Back
Top