private static boolean isSparseArray(Element arrayE){
  String name=arrayE.getTagName();
  if (name.equals("INT-SparseArray") || name.equals("REAL-SparseArray")) {
    return true;
  }
  return false;
}

private static boolean isSparseArray ( Element arrayE ) { String name = arrayE . getTagName ( ) ; if ( name . equals ( "INT-SparseArray" ) || name . equals ( "REAL-SparseArray" ) ) { return true ; } return false ; }
utility method to check if an xml element is a sparse array .
