Changeset 25983 for main


Ignore:
Timestamp:
2012-07-19T14:35:07+12:00 (12 years ago)
Author:
sjm84
Message:

A minor fix as well as adding in a new element type

File:
1 edited

Legend:

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

    r25969 r25983  
    7272    public static final String STYLESHEET_ELEM = "format";//"stylesheet"; // any additional stylesheet stuff is carried in the message inside this elem
    7373    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";
    7475    public static final String TERM_ELEM = "term";
    7576    public static final String STOPWORD_ELEM = "stopword";
     
    713714        while (child != null)
    714715        {
    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))
    716717            {
    717718                node_list.addNode(child);
     
    10631064    public static Element getLastElementByTagNameNS(Element main, String namespace, String node_name)
    10641065    {
    1065 
    10661066        NodeList nodes = main.getElementsByTagNameNS(namespace, node_name);
    10671067        int len = nodes.getLength();
Note: See TracChangeset for help on using the changeset viewer.