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


1 import org.w3c.dom.*;
2 import com.ibm.xml.parser.*;
3 import java.io.*;
4
5 public class DocModification {
6
7 public static void main (String args[]) throws Exception {
8
9 Parser parser = new Parser(args[0]);
10 InputStream in = new FileInputStream(args[0]);
11 TXDocument document;
12 Element root;
13 Element publication;
14 NodeList publications;
15 Element title;
16 Element lastname;
17 Text titleText;
18 PrintWriter pw;

in Table To:


© 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