Project

General

Profile

« Previous | Next » 

Revision 76

Added by Matt Jones over 24 years ago

fixed DBSimpleQuery after doctype additions done by Jivka

View differences:

src/xmltables.sql
37 37
	nodeindex	NUMBER(10),
38 38
	nodetype	VARCHAR2(20),
39 39
	nodename	VARCHAR2(100),
40
	nodedata	LONG,
40
	nodedata	VARCHAR2(4000),
41 41
	date_created	DATE,
42 42
	date_updated	DATE,
43 43
   CONSTRAINT xml_nodes_pk PRIMARY KEY (nodeid),
src/edu/ucsb/nceas/metacat/DBSAXHandler.java
76 76
    // here is a bug: dtd.getPublicId() and dtd.getSustemId() return null.
77 77
    docname = dtd.getName();
78 78
    doctype = dtd.getPublicId();
79
    if (doctype == null) {
80
      doctype = docname;
81
    }
79 82
    systemid = dtd.getSystemId();
80
    System.out.println("DOCTYPE: " + docname);
83
    System.out.println("DOCNAME: " + docname);
81 84
    System.out.println("DOCTYPE: " + doctype);
82
    System.out.println("DOCTYPE: " + systemid);
85
    System.out.println("  SYSID: " + systemid);
83 86
   }
84 87

  
85 88
   /** SAX Handler that receives notification of end of DTD 
Makefile
42 42
	$(JAVAC) -classpath "$(CPATH)" \
43 43
		DBSimpleQuery.java
44 44

  
45
servlet: query reader xvalid
45
servlet: query reader orasax xvalid
46 46
	$(JAVAC) -classpath "$(CPATH)" MetaCatServlet.java
47 47
	cp -r classes/edu /home/httpd/servlets/
48 48

  
DBSAXHandler.java
76 76
    // here is a bug: dtd.getPublicId() and dtd.getSustemId() return null.
77 77
    docname = dtd.getName();
78 78
    doctype = dtd.getPublicId();
79
    if (doctype == null) {
80
      doctype = docname;
81
    }
79 82
    systemid = dtd.getSystemId();
80
    System.out.println("DOCTYPE: " + docname);
83
    System.out.println("DOCNAME: " + docname);
81 84
    System.out.println("DOCTYPE: " + doctype);
82
    System.out.println("DOCTYPE: " + systemid);
85
    System.out.println("  SYSID: " + systemid);
83 86
   }
84 87

  
85 88
   /** SAX Handler that receives notification of end of DTD 
xmltables.sql
37 37
	nodeindex	NUMBER(10),
38 38
	nodetype	VARCHAR2(20),
39 39
	nodename	VARCHAR2(100),
40
	nodedata	LONG,
40
	nodedata	VARCHAR2(4000),
41 41
	date_created	DATE,
42 42
	date_updated	DATE,
43 43
   CONSTRAINT xml_nodes_pk PRIMARY KEY (nodeid),

Also available in: Unified diff