Changeset 9301 for trunk/gli/src/org/greenstone/gatherer/gems
- Timestamp:
- 2005-03-07T16:35:30+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gems/MSMUtils.java
r9170 r9301 48 48 static public char SF_SEP= '^'; //The character used to separate subfields from metadata element. 49 49 50 /** Method to add one node as a child of another, after migrating into the target document.51 * @param parent The <strong>Node</strong> we are inserting into.52 * @param child The original <strong>Node</strong> we are inserting. Must first be cloned into the parents document.53 */54 static public void add(Node parent, Node child) {55 Document document = parent.getOwnerDocument();56 Node new_child = document.importNode(child, true);57 parent.appendChild(new_child);58 }59 50 60 51 /** Method to add an attribute element to the given element. This method makes use of the language_dependent attribute of the document to not only determine if the attribute is language dependent, but also to see whether a Language element should be created if doesn't already exist.
Note:
See TracChangeset
for help on using the changeset viewer.