[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xindice-dev
Subject:    RE: XUpdate Query Compilation Error
From:       "Jayaram Narayana" <nani () india ! hp ! com>
Date:       2002-04-22 8:21:29
[Download RAW message or body]

it indeed was malformed as you had discovered. thanks a ton!

-nani

-----Original Message-----
From: Barney Govan [mailto:bg@adv.sonybpe.com]
Sent: Friday, April 19, 2002 6:42 PM
To: xupdate-dev@xmldb.org; Xindice Mailing List
Subject: RE: XUpdate Query Compilation Error


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: owner-xupdate-dev@xmldb.org [mailto:owner-xupdate-dev@xmldb.org]On
Behalf Of Lars Martin
Sent: 19 April 2002 14:07
To: xupdate-dev@xmldb.org
Subject: Fw: XUpdate Query Compilation Error


Begin forwarded message:

Date: Fri, 19 Apr 2002 17:43:53 +0530
From: "Jayaram Narayana" <nani@india.hp.com>
To: "'Xindice Dev. Group'" <xindice-dev@xml.apache.org>
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:Lars.Martin@smb-tec.com
SMB GmbH                                        http://www.smb-tec.com

----------------------------------------------------------------------
Post a message:         mailto:xupdate-dev@xmldb.org
Unsubscribe:
mailto:xupdate-dev-request@xmldb.org?body=unsubscribe
Contact administrator:  mailto:xupdate-dev-owner@xmldb.org
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
*************************************************************************

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic