Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW COME -XML::DOM - 2 QUEST.

Status
Not open for further replies.

shlomyb

Programmer
Nov 14, 2006
32
IL
1.By using XML::DOM::getChildNodes() I get diffrent answers for a flatted xml line and for "human readable" file .
2.Number of sons (as I believe means "direct sons" ) is NOT correct .
see:

Thus I prefered for a recursive method to use getElementByTagName("*",0) and define a "TEXT" Node as one that has no children ,

But I got a strange feeling that it can not be that Perl defines getChildNodes() to work like this and mybe I am wrong ....
Please advice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top