Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> HELP: XML-0108: (Fatal Error) Start of root element expected
All,
When I attempt to storing XML file to Oracle using Oracle XSU, I got the following exception:
<Line 1, Column 1>: XML-0108: (Fatal Error) Start of root element expected.
Exception in thread "main" oracle.xml.sql.OracleXMLSQLException: Start of root
element expected.
at oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java:2093) at oracle.xml.sql.dml.OracleXMLSave.insertXML(OracleXMLSave.java:1083) at XML2DB.main(XML2DB.java:20)
Anybody has some idea about it? Thanks.
XML file:
<?xml version = '1.0'?>
<ROWSET>
<ROW num="1">
<TID>15</TID> <HOSTNAME>localhost</HOSTNAME> <INFO>asldkjf</INFO>
Java file storing XML to Oracle:
Connection conn = getConnection( dblink, user, passwd ); OracleXMLSave sav = new OracleXMLSave(conn, "test"); // Assume that the user passes in this document. Save it in to the table.! if ( argv.length != 1 ) { System.out.println("Usage: java XML2DB xmlfilename"); return ; } sav.insertXML(argv[0]); sav.close();Received on Wed Sep 19 2001 - 07:33:03 CDT
- text/x-vcard attachment: Card for GengBo
![]() |
![]() |