>the lenght should be 2 , but it returns 5.

Don't forget to count the Text nodes which represent the whitespace
surrounding the child elements, unless you have set the parser to discard
whitespace-in-element-content _and_ are validating against a DTD or schema
which says that PCDATA is forbidden at this point.

Note that these will cause the typecast in
       cout << ( ((DOM_Element&)childlist.item(i)).getTagName()
to fail, which is probably your actual problem.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to