code: private static int processPoly(Polygon poly, Element element, StringTokenizer tokens) throws ParsingException {
  		int count = 0;
  		
  		while (tokens.hasMoreTokens()) {
  			String nextToken = tokens.nextToken();
  			if (nextToken.equals("L")) {
  				continue;
  			}
  			if (nextToken.equals("z")) {
  				break;
  			}
  			if (nextToken.equals("M")) {
  				continue;
  			}
  			if (nextToken.equals("C")) {
  				return 0;
  			}
  			
  			String tokenX = nextToken;
  			String tokenY = tokens.nextToken();
  			
  			try {
  				float x = Float.parseFloat(tokenX);
  				float y = Float.parseFloat(tokenY);
  				
  				poly.addPoint(x,y);
  				count++;
  			} catch (NumberFormatException e) {
  				throw new ParsingException(element.getAttribute("id"), "Invalid token in points list", e);
  			}
  		}
  		
  		return count;
  	}
docs: Process the points in a polygon definition
  
  @param poly The polygon being built
  @param element The XML element being read
  @param tokens The tokens representing the path
  @return The number of points found
  @throws ParsingException Indicates an invalid token in the path