Changeset 21548

Show
Ignore:
Timestamp:
20.01.2010 17:24:47 (9 years ago)
Author:
ak19
Message:

Added a statement to print out all the XML when there's a parse errorr: it could be helpful with debugging, but not always, so it's commented out.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/util/XMLTools.java

    r20811 r21548  
    538538                DebugStream.println("The parsing error occurred on this line:\n***********START\n" + line + "\n***********END"); 
    539539                DebugStream.println("SAXParseException message: " + e.getMessage() + "\n"); 
     540 
     541        // Uncomment if you want to print out the entire contents of the XML doc: 
     542        //DebugStream.println("\n\nThis was the XML:\n*********START\n"  
     543        //  + xmlContents + "\n************END\n"); 
    540544            } else { // no particular line number, print out all the xml so debugger can inspect it 
    541545                DebugStream.println("Encountered a SAX exception when parsing the following:\n*********START\n"