Connecting Tech Pros Worldwide Forums | Help | Site Map

XMLNode.ChildNodes

Venkat Venkataramanan
Guest
 
Posts: n/a
#1: Nov 20 '05
Hello:

Can somebody explain to me the usage of the
XMLNode.ChildNodes?

When there is a node that does not have any child node,
the above method returns an array of 1. This member has
the following values:

Name "#text"
value "Bl34" (this is the value of the node)

I would have thought that XMLNode.Childnodes would
hreturn a 0 in the above case?

Thanks.

Venkat

Kevin Yu
Guest
 
Posts: n/a
#2: Nov 20 '05

re: XMLNode.ChildNodes


Hi Venkat,

XMLNode.ChildNode would return an array of 0 is there's no child node.
According to your description, I cannot reproduce it. Try to use
XMLNode.HasChildNodes to judge whether there's any child nodes in that
node. If that still doesn't work, would you please paste some of your codes
and your XML file so I can deliver my assistance more quickly?

If anything is unclear, please feel free to reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Closed Thread