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