Changeset 37613


Ignore:
Timestamp:
2023-04-06T16:52:07+12:00 (13 months ago)
Author:
kjdon
Message:

added a couple of element/attribute name constants. Also added removeAllAttributes method, but didn't end up using it.

File:
1 edited

Legend:

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

    r37519 r37613  
    5757    public static final String RESPONSE_ELEM = "response";
    5858    public static final String COLLECTION_ELEM = "collection";
     59  public static final String CC_SERVICES_ELEM = "ccServices";
    5960    public static final String SERVICE_ELEM = "service";
    6061    public static final String CLUSTER_ELEM = "serviceCluster";
     
    112113    public static final String NOTIFY_ELEM = "notify";
    113114    public static final String NOTIFY_HOST_ATT = "host";
    114 
     115  public static final String SERVICE_ATT = "service";
    115116        //doc.xml file elems
    116117    public static final String DOCXML_SECTION_ELEM = "Section";
     
    568569   
    569570  }
     571
     572  public static void removeAllAttributes(Element elem) {
     573
     574    while (elem.getAttributes().getLength() > 0) {
     575      Node att = elem.getAttributes().item(0);
     576      elem.removeAttribute(att.getNodeName());
     577    }   
     578   
     579  }
    570580    public static Element createMetadataParamList(Document owner, Vector meta_values)
    571581    {
Note: See TracChangeset for help on using the changeset viewer.