thank you for your valuable advice. I deeply appreciate it.
Sincerely,
Laurent
Janvier Majirus <[EMAIL PROTECTED]> wrote:
Janvier Majirus <[EMAIL PROTECTED]> wrote:
I don't yet use JCreator.I think a best way to understand an API is by trying it in native form. So try your code in command line, i think it shall work.Reagards,Majirus
Laurent Yew <[EMAIL PROTECTED]> wrote:I'm running my codes in JCreator.I haven't tried running it in the command line.
Janvier Majirus <[EMAIL PROTECTED]> wrote:Hi laurent,I copied, compiled and run your example from command line without any problem.How do you call your .class?Sincerely, i don't see what is wrong in this snapshot.regards,majirus
Laurent Yew <[EMAIL PROTECTED]> wrote:i am having some difficulty running the following codes:import org.xmldb.api.base.*;
import org.xmldb.api.modules.*;
import org.xmldb.api.*;/**
* Simple XML:DB API example to update the database.
*/
public class XindiceUpdate {
public static void main(String[] args) throws Exception {
Collection col = null;
try {
String driver = "org.apache.xindice.client.xmldb.DatabaseImpl";
Class c = Class.forName(driver);
Database database = (Database) c.newInstance();
DatabaseManager.registerDatabase(database);
col =
DatabaseManager.getCollection("xmldb:xindice:///db/addressbook");String xupdate = "<xu:modifications version=\'1.0\'" +
" xmlns:xu=\'http://www.xmldb.org/xupdate\'>" +
" <xu:remove select=\'/person/[EMAIL PROTECTED] = 'home']\'/>" +
" <xu:update select=\'/person/[EMAIL PROTECTED] = 'work']\'>" +
" 480-300-3003" +
" </xu:update>" +
"</xu:modifications>";XUpdateQueryService service =
(XUpdateQueryService) col.getService("XUpdateQueryService", "1.0");
service.update(xupdate);
}
catch (XMLDBException e) {
System.err.println("XML:DB Exception occured " + e.errorCode + " " +
e.getMessage());
}
finally {
if (col != null) {
col.close();
}
}
}
}error message which i got was:org.apache.xindice.client.corba.db.APIException: IDL : org/apache/xindice/client/corba/db/APIException:1.0Please help me. Thank you
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.
Do you Yahoo!?
The all-new My Yahoo! – What will yours do?
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
Créez votre Yahoo! Mail
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
Créez votre Yahoo! Mail
Do you Yahoo!?
Meet the all-new My Yahoo! – Try it today!