XML Child Count Question.

Im new to XML and perhaps I =dont understand what a child count is.

Giventhe following XML:

[code]<?xml version="1.0" ?>

0

1

\\

[/code]

MsgBox “Child count:”+str(xml.ChildCount)

Gives me: “Child Count: 1”

Could someone kindly cut/paste/alter the XML above to have child count of 2?

Your xml variable is going to refer to the top node (<?xml?>), which only has a single child ().

If you want the actual contents, you want xml.DocumentElement. This starts you at , which has two children (the two nodes). So with the above XML, you would use:

MsgBox("Child Count: " + Str(xml.DocumentElement.ChildCount))