Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: difference between IXMLDOMElement and IXMLDOMNode [Thread Next] Re: difference between IXMLDOMElement and IXMLDOMNodeTo: NULL Date: 10/1/2005 12:31:00 PM alexl wrote: > one odd thing though, if I use get_childNodes it counts white > space as a node, e.g. > > <test></test><test1></test1> > counts as 2 nodes, but > > <test></test> > <test1></test1> > counts as 3, You would need to wrap that into a container element to answer that with an exact number but childNodes gives you all child nodes in the container element and there are not only element nodes oossible but also text nodes for instance and white space between element nodes might show up as a text node in the DOM. But you could have comments or processing instructions as well as child nodes so that could show up as well. <http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/039aa2c8-2414-43e8-82cf-3e056eebb2f4.asp> -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
