-
Need help with XSU and setIgnoreCase...
I know I'm probally missing something simple but I'm trying to use the Oracle example from the XDK documentation but can't figure out to enable setIgnoreCase
any help would be great thanks...
/** Simple example on using Oracle XMLSQL API; this class inserts the data from a XML document into the database*/
import oracle.xml.sql.dml.*;
import java.sql.*;
import oracle.jdbc.driver.*;
import oracle.jdbc.*;
import java.net.*;
public class samp10
{
//========================================
// main() - public static void
public static void main(String args[]) throws SQLException
{
String tabName = "XMLTEST_TAB1"; // table into which to insert
String fileName = "sampdoc.xml"; // file name containing the xml doc
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
//init a JDBC connection
Connection conn =
DriverManager.getConnection("jdbcracleci8:scott/tiger@");
OracleXMLSave sav = new OracleXMLSave(conn, tabName);
URL url = sav.getURL(fileName);
int rowCount = sav.insertXML(url);
System.out.println(" successfully inserted "+rowCount+
" rows into "+ tabName);
conn.close();
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|