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]
----------------------------------------------------------------------

Reply via email to