[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problems with xupdate
On Mon, 11 Dec 2000, Mamei Marco wrote:
> Hi,
> I am not able to let xupdate works! It gives me the exception:
> Exception in thread "main" java.lang.Exception: no command for id 101 !
> I looked my xmlns, but it is correct!
> Here is my code, I simply took the xmlsamples code and changed the xupdate
> statement:
>
> protected static void xupdateQuery( String filename ) throws Exception {
> String prefix = "XUpdate query: ";
>
> String document = "<pippo>pluto<pappo>pluto</pappo></pippo>";
>
> // all files and names are hard wired yet
> // filename = "address.xml";
> qstring = "<lexus:modifications version=\"1.0\"
> xmlns:lexus=\"http://www.xmldb.org/xupdate\">"+
> "<lexus:append select=\"/xmlrepository\" child=\"last()\">"+
> "<lexus:element name=\"article\">"+
> document+
> "</lexus:element>"+
> "</lexus:append>"+
> "</lexus:modifications>"; /* */
>
> System.out.println( prefix + "filename=" + filename + ", qstring=" + qstring
> );
>
> then the code is the same as in the xml-sample.
> Can you help me? What is wrong with this code?
Marco, there is a new version of lexus available via CVS. This should fix the
problem.
Falko
--
______________________________________________________________________
Falko Braeutigam mailto:falko@smb-tec.com
SMB GmbH http://www.smb-tec.com