Changeset 18376


Ignore:
Timestamp:
01/14/09 13:29:05 (12 years ago)
Author:
ak19
Message:

Prepended the xml declaration to the Options tag, so that the XMLTools.java parser does not complain about the missing xml declaration and crash GLI.

Location:
gli/trunk/src/org/greenstone/gatherer/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/gui/ExplodeMetadataDatabasePrompt.java

    r18370 r18376  
    101101    // set up the script options
    102102    // we have empty initial values
    103     String dom_string = "<Options/>";
     103    String dom_string = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Options/>";
    104104    Document doc = XMLTools.parseXML(new StringReader(dom_string));
    105105    options = new ScriptOptions(doc.getDocumentElement(), "explode_metadata_database.pl");
  • gli/trunk/src/org/greenstone/gatherer/gui/ReplaceSrcDocWithHtmlPrompt.java

    r17612 r18376  
    104104    // set up the script options
    105105    // we have empty initial values
    106     String dom_string = "<Options/>";
     106    String dom_string = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Options/>";
    107107    Document doc = XMLTools.parseXML(new StringReader(dom_string));
    108108    options = new ScriptOptions(doc.getDocumentElement(), "replace_srcdoc_with_html.pl");
Note: See TracChangeset for help on using the changeset viewer.