1.By using XML:
OM::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.
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.