Is this really the code that doesn't work? It does exactly what you want on my computer( prints description/assertion command).
The problem might arise from the fact that getChildNodes returns not only element nodes, but includes text nodes containing the surrounding whitespaces. But as I say, for the code and file you pasted, it does work.
In reply to Re: why spaces! XML::DOM
by pjotrik
in thread why spaces! XML::DOM
by huiling
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |