Changeset 4243


Ignore:
Timestamp:
2003-05-08T12:12:29+12:00 (21 years ago)
Author:
kjdon
Message:

new elem names and a new method

File:
1 edited

Legend:

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

    r4145 r4243  
    6262    public static final String SITE_NAME_ELEM = "localSiteName";
    6363    public static final String SITE_HTTP_ADDRESS_ELEM = "httpAddress";
    64 
     64    public static final String  ACTION_ELEM = "action";
     65    public static final String  SUBACTION_ELEM = "subaction";
     66   
    6567    // add on to another elem type to get a list of that type
    6668    public static final String LIST_MODIFIER = "List";
     
    380382    }
    381383
    382 
     384    public static void copyAllChildren(Element to, Element from) {
     385
     386    Document to_doc = to.getOwnerDocument();
     387    Node child = from.getFirstChild();
     388    while (child != null) {
     389        to.appendChild(to_doc.importNode(child, true));
     390        child = child.getNextSibling();
     391    }
     392    }
    383393    /** returns a basic request message */
    384394    public static  Element createBasicRequest(Document owner,
Note: See TracChangeset for help on using the changeset viewer.