You have a malformed xml document: The line <xupdate:update element name=\"project\">
is incorrect as the "element" attribute is illegal. I presume you mean: <xupdate:element name=\"project\">. Hope this helps. Barney Govan R&D Engineer Sony BPRL -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Lars Martin Sent: 19 April 2002 14:07 To: [EMAIL PROTECTED] Subject: Fw: XUpdate Query Compilation Error Begin forwarded message: Date: Fri, 19 Apr 2002 17:43:53 +0530 From: "Jayaram Narayana" <[EMAIL PROTECTED]> To: "'Xindice Dev. Group'" <[EMAIL PROTECTED]> Subject: XUpdate Query Compilation Error hi guys! given this simple document: <?xml version = "1.0"?> <metaKnowledge> <metaInfo PID = "1"> <project name = "open view" UID = "0" documentKey = "open view" fileName = "open view" version = "" /> </metaInfo> </metaKnowledge> i need to add a new element inside metaKnowledge. i am trying this XUpdate query: <xupdate:modifications version=\"1.0\" xmlns:xupdate=\"http://www.xmldb.org/xupdate\"> <xupdate:insert-after select=\"metaKnowledge/metaInfo[last()]\"> <xupdate:update element name=\"project\"> <xupdate:attribute name=\"name\">MegaProject</xupdate:attribute> <xupdate:attribute name=\"UID\">1</xupdate:attribute> <xupdate:attribute name=\"documentKey\">MegaProject</xupdate:attribute> <xupdate:attribute name=\"fileName\">MegaProject</xupdate:attribute> <xupdate:attribute name=\"version\">null</xupdate:attribute> A New Project Called MegaProject </xupdate:element> </xupdate:insert-after> </xupdate:modifications> can someone tell me if this query is formed right? if not, what's the right query? i am always getting this error, try what i may: org.xmldb.api.base.XMLDBException: Query Compilation Error at org.apache.xindice.core.FaultCodes.createXMLDBException(Unknown Source) : : any help appreciated greatly! TIA, -nani -- ______________________________________________________________________ Lars Martin mailto:[EMAIL PROTECTED] SMB GmbH http://www.smb-tec.com ---------------------------------------------------------------------- Post a message: mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED] Contact administrator: mailto:[EMAIL PROTECTED] Read archived messages: http://archive.xmldb.org/ ---------------------------------------------------------------------- ************************************************************************* The information contained in this message or any of its attachments may be privileged and confidential and intended for the exclusive use of the addressee. If you are not the addressee any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited ************************************************************************* ---------------------------------------------------------------------- Post a message: mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED] Contact administrator: mailto:[EMAIL PROTECTED] Read archived messages: http://archive.xmldb.org/ ----------------------------------------------------------------------