Changeset 14237 for gli


Ignore:
Timestamp:
2007-07-10T09:53:58+12:00 (17 years ago)
Author:
xiao
Message:

modify to skip the parsing of the collectionConfig.xml internal structure because for some reasons the SAX parser always conlains about the well-formedness. need to look at it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/cdm/CollectionDesignManager.java

    r14094 r14237  
    191191     */
    192192    public void save()
    193     {
    194     if (Gatherer.GS3 == false) {
    195         collect_config.saveIfNecessary();
    196         return;
    197     }
    198 //      String msg = XMLParser.parseDOM(CollectionManager.getLoadedCollectionCfgFilePath());
    199         Element root = this.collect_config.getDocumentElement ();       
    200         String msg = XMLTools.parseDOM(XMLTools.xmlNodeToString(root));
    201         if(msg.startsWith(XMLTools.NOTWELLFORMED)) {
    202                 String str = new String("The collection configuration file is not wellformed, and cannot be saved to disk.");
    203                 JOptionPane.showMessageDialog(null, str, XMLTools.NOTWELLFORMED, JOptionPane.ERROR_MESSAGE);
    204         } else {
    205 
    206     collect_config.saveIfNecessary();
    207             }
     193{
     194      collect_config.saveIfNecessary();
     195     
     196//      if (Gatherer.GS3 == false) {
     197//        collect_config.saveIfNecessary();
     198//        return;
     199//      }
     200////      String msg = XMLParser.parseDOM(CollectionManager.getLoadedCollectionCfgFilePath());
     201//      Element root = this.collect_config.getDocumentElement();
     202//      String msg = XMLTools.parseDOM(XMLTools.xmlNodeToString(root));
     203//      if(msg.startsWith(XMLTools.NOTWELLFORMED)) {
     204//        String str = new String("The collection configuration file is not wellformed, and cannot be saved to disk.");
     205//        JOptionPane.showMessageDialog(null, str, XMLTools.NOTWELLFORMED, JOptionPane.ERROR_MESSAGE);
     206//      } else {
     207//       
     208//        collect_config.saveIfNecessary();
     209//      }
    208210    }
    209211
Note: See TracChangeset for help on using the changeset viewer.