Hi Jeroen! Thank you very much for your help and for your quick reply! I used the Java commands you sent and got the following error:
org.xml.sax.SAXException at org.xmldb.xupdate.lexus.XUpdateQueryImpl.setQString(XUpdateQueryImpl.java:13 3) Do you have any ideas what went wrong and how I can solve the problem? Thanks a lot in advance! Regards, Bettina ----- Original Message ----- From: "Jeroen Breedveld" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 02, 2003 9:36 AM Subject: RE: Beginner, please help! > Hi, > > || -----Original Message----- > || From: [EMAIL PROTECTED] > || [mailto:[EMAIL PROTECTED] On Behalf Of Bettina Dickerhof > || Sent: zondag 1 juni 2003 22:26 > || To: [EMAIL PROTECTED] > || Subject: Beginner, please help! > || > || > || I have created a document that contains xupdate commands. > || I don`t know how to use xupdate on a xml document. > || Do I have to create a stylesheet for this? Or is there a > || tool that can merge xupdate and the corresponding xml > || document automatically? Can anybody help me? Thanks a lot > || in advance. > > If you have the ant tool installed (which I recommend) you can perform > an xupdate by calling: > > ant xupdate -Dupdate=document_with_xupdate_commands.xml > -Ddocument=document_to_perform_xupdate_on.xml > > otherwise you have to write a Java program that does something like > this: > > XUpdateQuery xq = new XUpdateQueryImpl(); > xq.setQString(queryStr); > xq.execute(myDocument); > > in which queryStr is a String containing the xupdate commands and > myDocument is a parsed DOM tree (for example using Xerces) from the > document you wish to perform the xupdate operations on. > > regards, > > Jeroen Breedveld > > -- > > X-Hive Corporation > e-mail: [EMAIL PROTECTED] > phone: +31 10 2818080 > http://www.x-hive.com > > ---------------------------------------------------------------------- > Post a message: mailto:[EMAIL PROTECTED] > Unsubscribe: mailto:[EMAIL PROTECTED] > Contact administrator: mailto:[EMAIL PROTECTED] > Read archived messages: http://www.mail-archive.com/[EMAIL PROTECTED] > ---------------------------------------------------------------------- > ---------------------------------------------------------------------- Post a message: mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED] Contact administrator: mailto:[EMAIL PROTECTED] Read archived messages: http://www.mail-archive.com/[EMAIL PROTECTED] ----------------------------------------------------------------------