code: protected int parseIndent(final String template, final String indentOf)
     {
        int indent = 0;
        int indexOf = template.indexOf(indentOf);
  
        while ((indexOf >= 0) && (template.charAt(indexOf) != '\n'))
        {
           if (template.charAt(indexOf) == '\t')
           {
              indent++;
           }
  
           indexOf--;
        }
  
        return indent;
     }
docs: Parses the given XML and determines the indent of the given String namespaces that Metawidget introduces.