Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: difference between IXMLDOMElement and IXMLDOMNode

From: Martin Honnen <mahotrash@-----.-->
To: 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/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent