Changeset 18307 for greenstone3/trunk/src/java/org/greenstone/gsdl3
- Timestamp:
- 2009-01-05T21:18:33+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/src/java/org/greenstone/gsdl3/util/XMLConverter.java
r16999 r18307 47 47 * now we only use xerces 48 48 * 49 * @author <a href="mailto:[email protected]">Katherine Don</a>50 * @version $Revision$51 *52 49 */ 53 50 public class XMLConverter { … … 58 55 protected DOMParser parser = null; 59 56 60 private boolean outputEscaping = true;57 private static boolean outputEscaping = true; 61 58 62 59 … … 162 159 163 160 /** creates a new empty DOM Document */ 164 public Document newDOM() {161 public static Document newDOM() { 165 162 Document doc = new DocumentImpl(); 166 163 return doc; … … 168 165 169 166 /** returns the Node as a String */ 170 public String getString(Node xmlNode)167 public static String getString(Node xmlNode) 171 168 { 172 169 outputEscaping = true; … … 179 176 * text nodes if the String is read back in as a DOM, so should only be 180 177 * used for printing */ 181 public String getPrettyString(Node xmlNode) {178 public static String getPrettyString(Node xmlNode) { 182 179 183 180 outputEscaping = true; … … 187 184 } 188 185 189 private void getString(Node xmlNode, StringBuffer xmlRepresentation,186 private static void getString(Node xmlNode, StringBuffer xmlRepresentation, 190 187 int depth, boolean pretty) 191 188 {
Note:
See TracChangeset
for help on using the changeset viewer.