Changeset 24609

Show
Ignore:
Timestamp:
19.09.2011 10:11:12 (8 years ago)
Author:
xiao
Message:

added a xmlNodeToString method to be backward compatible with legacy code - default printText to true

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/GSXML.java

    r24583 r24609  
    946946    } 
    947947 
     948    public static String xmlNodeToString(Node e){ 
     949        StringBuffer sb = new StringBuffer(""); 
     950        xmlNodeToString(sb,e,0,true); 
     951        return sb.toString(); 
     952    } 
     953 
    948954    public static String xmlNodeToString(Node e, boolean printText){ 
    949955        StringBuffer sb = new StringBuffer("");