Changeset 21911
- Timestamp:
- 2010-04-20T10:43:49+12:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/GSXML.java
r21281 r21911 239 239 public static final String USER_NODE_ELEM="userNode"; 240 240 241 //for configure action results 242 public static final String SUCCESS = "success"; 243 public static final String ERROR = "error"; 244 241 245 /** takes a list of elements, and returns an array of strings 242 246 * of the values of attribute att_name */ … … 632 636 } 633 637 638 public static Element createTextElement(Document owner, String elem_name, 639 String text, String att_name, String att_value) { 640 Element e = owner.createElement(elem_name); 641 e.setAttribute(att_name, att_value); 642 Text t = owner.createTextNode(text); 643 e.appendChild(t); 644 return e; 645 646 } 647 634 648 public static Element createDisplayTextElement(Document owner, 635 649 String text_name,
Note:
See TracChangeset
for help on using the changeset viewer.