Changeset 25983
- Timestamp:
- 2012-07-19T14:35:07+12:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/GSXML.java
r25969 r25983 72 72 public static final String STYLESHEET_ELEM = "format";//"stylesheet"; // any additional stylesheet stuff is carried in the message inside this elem 73 73 public static final String FORMAT_ELEM = "format"; // config files use format - should we use this instead of stylesheet?? 74 public static final String GLOBAL_FORMAT_ELEM = "globalFormat"; 74 75 public static final String TERM_ELEM = "term"; 75 76 public static final String STOPWORD_ELEM = "stopword"; … … 713 714 while (child != null) 714 715 { 715 if (child.getNodeType() == Node.ELEMENT_NODE && child.getNamespaceURI() .equals(namespace) && child.getLocalName() != null && child.getLocalName().equals(local_name))716 if (child.getNodeType() == Node.ELEMENT_NODE && child.getNamespaceURI() != null && child.getNamespaceURI().equals(namespace) && child.getLocalName() != null && child.getLocalName().equals(local_name)) 716 717 { 717 718 node_list.addNode(child); … … 1063 1064 public static Element getLastElementByTagNameNS(Element main, String namespace, String node_name) 1064 1065 { 1065 1066 1066 NodeList nodes = main.getElementsByTagNameNS(namespace, node_name); 1067 1067 int len = nodes.getLength();
Note:
See TracChangeset
for help on using the changeset viewer.