public static void main (String[] argv)
   {
      int         i;
      EntradaMat[]  loleido;

      if (argv.length != 1) {
         System.err.println("Uso: java ManejadorMatrizXML <archivo>");
         System.exit(1);
      }

      ManejadorMatrizXML handler = new ManejadorMatrizXML();
      SAXParserFactory factory = SAXParserFactory.newInstance();
      factory.setValidating(true);
      factory.setNamespaceAware(true);
      try {
         SAXParser saxParser = factory.newSAXParser();
         saxParser.parse( new File(argv[0]), handler);
         loleido = handler.getEntradas();
         for (i=0; i<loleido.length; i++){
            System.out.print("ren: "+loleido[i].getIdxRenglon());
            System.out.print("\tcol: "+loleido[i].getIdxColumna());
            System.out.println("\tE: "+loleido[i].getContenido());
         }
      } catch (SAXParseException spe) {
         System.out.println("\n** Parsing error"
                            + ", line " + spe.getLineNumber()
                            + ", uri " + spe.getSystemId());
         System.out.println("   " + spe.getMessage() );
         Exception  x = spe;
         if (spe.getException() != null)
            x = spe.getException();
         x.printStackTrace();
      } catch (SAXException sxe) {
         Exception  x = sxe;
         if (sxe.getException() != null)
            x = sxe.getException();
         x.printStackTrace();
      } catch (ParserConfigurationException pce) {
         pce.printStackTrace();
      } catch (IOException ioe) {
         ioe.printStackTrace();
      }
      System.exit(0);
   }