void loadstudent(String regno) {
        try {
            String tmp;
            int m,f;
            Point p1=jLabel1.getLocationOnScreen(),p2=jLabel2.getLocationOnScreen();
            expr = xpath.compile("//student[@regno='"+regno+"']/subject/@code"); 
            result = expr.evaluate(doc, XPathConstants.NODESET);
            nodes = (NodeList) result;
           System.out.println("ls:A");
            for(int i=0;i<nodes.getLength();i++) {
                m=f=0;
                 expr = xpath.compile("//student[@regno='"+regno+"']/subject[@code='"+nodes.item(i).getNodeValue()+"']//marks/text()");
                  expr1 = xpath.compile("//student[@regno='"+regno+"']/subject[@code='"+nodes.item(i).getNodeValue()+"']//full_marks/text()");
                  result = expr.evaluate(doc, XPathConstants.NODESET);
                  nodes1 = (NodeList) result;
                  result = expr1.evaluate(doc, XPathConstants.NODESET);
                  nodes2 =(NodeList) result;
                  System.out.println("ls:B");
                  for(int j=0;j<nodes1.getLength();j++) {
                     // System.out.println(nodes1.item(j).getNodeValue());
                      m=m+Integer.parseInt(nodes1.item(j).getNodeValue().trim());
                      f=f+Integer.parseInt(nodes2.item(j).getNodeValue().trim());
                  }
                 System.out.println("ls:C");
                if(i==0)
                {

                  jls1.setText(nodes.item(i).getNodeValue());
                  jlm1.setText(m+"/"+f);
                  jls1.setVisible(true);
                  jlm1.setVisible(true);
                  jbv1.setVisible(true);
                  jbd1.setVisible(true);
                }
                else if(i==1) {
                    jls2.setText(nodes.item(i).getNodeValue());
                    jlm2.setText(m+"/"+f);
                  jls2.setVisible(true);
                  jlm2.setVisible(true);
                  jbv2.setVisible(true);
                  jbd2.setVisible(true);
                }
                else if(i==2) {
                    jls3.setText(nodes.item(i).getNodeValue());
                    jlm3.setText(m+"/"+f);
                  jls3.setVisible(true);
                  jlm3.setVisible(true);
                  jbv3.setVisible(true);
                  jbd3.setVisible(true);
                }
                else if(i==3) {
                    jls4.setText(nodes.item(i).getNodeValue());
                    jlm4.setText(m+"/"+f);
                  jls4.setVisible(true);
                  jlm4.setVisible(true);
                  jbv4.setVisible(true);
                  jbd4.setVisible(true);
                }
                else if(i==4) {
                    jls5.setText(nodes.item(i).getNodeValue());
                    jlm5.setText(m+"/"+f);
                  jls5.setVisible(true);
                  jlm5.setVisible(true);
                  jbv5.setVisible(true);
                  jbd5.setVisible(true);
                }
                else if(i==5) {
                    jls6.setText(nodes.item(i).getNodeValue());
                    jlm6.setText(m+"/"+f);
                  jls6.setVisible(true);
                  jlm6.setVisible(true);
                  jbv6.setVisible(true);
                  jbd6.setVisible(true);
                }
             }
        }
        catch(Exception e){
            System.out.println("loadstud: "+e.getMessage());
        }
    }