I am not sure about this one. root is usually reserved for the root of the tree. I would expect root_text to give me the text of the root of the tree (ie whitout the XML declaration and comments/PIs before the root).
What about text_only? I like the idea of the method being named text_..., so it is obviuus that it returns the text, and so it appears right after text in the online doc ToC, which is sorted by alphabetical order.
In reply to Re^3: Get text without children in XML::Twig
by mirod
in thread Get text without children in XML::Twig
by shamu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |