private void parse(String path) throws Exception {
  if (path != null) {
    count=path.length();
    data=new char[count];
    path.getChars(0,count,data,0);
  }
  path();
}

private void parse ( String path ) throws Exception { if ( path != null ) { count = path . length ( ) ; data = new char [ count ] ; path . getChars ( 0 , count , data , 0 ) ; } path ( ) ; }
this method is used to parse the provided xpath expression . when parsing the expression this will trim any references to the root context , also any trailing slashes are removed . an exception is thrown if the path is invalid .
