Ignore:
Timestamp:
2004-11-05T10:10:44+13:00 (20 years ago)
Author:
kjdon
Message:

added in Chi's changes for METS documents. mostly the addition of new/improved parseXML methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/metadata/METSFileSet.java

    r7465 r8461  
    1717import java.sql.SQLException;
    1818import java.sql.ResultSet;
     19
     20import org.w3c.dom.Element;
     21import org.w3c.dom.NodeList;
     22
    1923
    2024import java.net.URL;
     
    172176    return resultList;
    173177  }
     178   
     179    /*
     180     *
     181     *
     182     */
     183    public static METSFileSet parseXML(NodeList fileSecs, METSFileSet fileSet, String parseFilePath) {
     184   
     185    //METSFileSet set = new METSFileSet();>
     186    // this is in effect a group without a sense of 'self'...
     187    for (int c = 0; c < fileSecs.getLength(); c++) {
     188        if (fileSecs.item(c).getNodeType() != org.w3c.dom.Node.ELEMENT_NODE){
     189        continue;
     190        }
     191       
     192        METSFileGroup groups = METSFileGroup.parse_groupXML((Element)fileSecs.item(c), fileSet, parseFilePath, null);
     193    }
     194    return fileSet;
     195    }
     196   
    174197
    175198  public void write(PrintWriter writer)
Note: See TracChangeset for help on using the changeset viewer.