Basic HTML version of Foils prepared August 1 99

Foil 39 Modification of Document

From Advanced XML and its applications CPS714 Computational Science Information Track -- July 7 99. by Lukasz Beca


import org.w3c.dom.*;
import com.ibm.xml.parser.*;
import java.io.*;
public class DocModification {
public static void main (String args[]) throws Exception {
Parser parser = new Parser(args[0]);
InputStream in = new FileInputStream(args[0]);
TXDocument document;
Element root;
Element publication;
NodeList publications;
Element title;
Element lastname;
Text titleText;
PrintWriter pw;



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Aug 1 1999