You **must** have <?xml version="1.0"?>. No other version will work, and a compliant XML parser is supposed to produce an error on any other version number (well, not quite -- some new parsers may accept "1.1"). Jeff
----- Original Message ----- From: "belinda_browne" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, January 21, 2003 7:24 PM Subject: Re: Xindice and XUpdate > This is my string, and from everything that i have looked at, including > the examples, I still get a query error. > > Please someone help. > > String xupdate = "<?xml version=\"" + XMLDBVERSION +"?>" + > "<xu:modifications version=\"" + XMLDBVERSION + "\" " + > "xmlns:xu=\"http://www.dbxml.org/xupdate> " + > "<xu:append select=\"/projects\"> " + > "<xu:element name=\"project\"> " + > "<xu:attribute name=\"id\">" + projectID > + "</xu:attribute>" + > "<name>" + projectName + "</name>" + > "<manager>" + projectManager + "</manager> " + > "<startDate>" + aSimpleDateFormat.format(startDate) > + "</startDate>" + > "<endDate>" + aSimpleDateFormat.format(endDate) > + "</endDate>" + > "</xu:element>" + > "</xu:append>" + > "</xu:modifications>"; >
