Hi everyone, I am sorry to be a bother, I am a uni student that is just trying to get this working as part of a Honours Thesis, and I am still struggling.
As many people suggested, I went and tried the examples found at: http://www.xmldatabases.org/projects/XUpdate-UseCases/ I created a files called testing.xml, and added the code as per the website: <addresses> <address id="1"> <!--This is the users name--> <name> <first>John</first> <last>Smith</last> </name> <city>Houston</city> <state>Texas</state> <country>United States</country> <phone type="home">333-300-0300</phone> <phone type="work">333-500-9080</phone> <note><![CDATA[This is a new user]]></note> </address> </addresses> then i tried the first query: <xupdate:modifications version="1.0" xmlns:xupdate="http://www.xmldb.org/xupdate"> <xupdate:insert-before select="/addresses/[EMAIL PROTECTED] = 1]/name/last" > <xupdate:element name="middle">Lennox</xupdate:element> </xupdate:insert-before> </xupdate:modifications> and put it into java following the example in the Xindice Developers Guide 0.7.1: String xupdate = "<xupdate:modifications version=\"1.0\"" + " xmlns:xupdate=\"http://www.xmldb.org/xupdate\">" + " <xupdate:insert-before select=\"/addresses/address [EMAIL PROTECTED]'1']/name/last\" >" + " <xupdate:element name=\"middle\">Lennox</xupdate:element>" + " </xupdate:insert-before>" + " </xupdate:modifications>"; XUpdateQueryService service = (XUpdateQueryService) col.getService("XUpdateQueryService", "1.0"); service.update(xupdate); And I still get a query error. Can some one please help, I am really trying here without much luck. Thanks in advance, Belinda
