Changeset 21548


Ignore:
Timestamp:
2010-01-20T17:24:47+13:00 (14 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.

File:
1 edited

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"
Note: See TracChangeset for help on using the changeset viewer.