code: private void  extractRawText(TextContainer parent, StringBuilder str)
     {
        Iterator<SvgObject>  iter = parent.children.iterator();
        boolean              isFirstChild = true;
  
        while (iter.hasNext())
        {
           SvgObject  child = iter.next();
  
           if (child instanceof TextContainer) {
              extractRawText((TextContainer) child, str);
           } else if (child instanceof TextSequence) {
              str.append(textXMLSpaceTransform(((TextSequence) child).text, isFirstChild, !iter.hasNext() /*isLastChild*/));
           }
           isFirstChild = false;
        }
     }
docs: /*
  Extract the raw text from a TextContainer. Used by <tref> handler code.