Mark and Jeff,
I have XML version 1.0, that is what XMLDBVERSION is set to. I printed out
the string, and there is no problem with it. I am really at my wits end.
Here is an example with the values filled in:
<?xml version="1.0"?>
<xu:modifications version="1.0" mins:xu=http://www.xmldb.org/xupdate>
<xu:append select="/projects">
<xu:element name="project">
<xu:attribute name="id">1</xu:attribute>
<name>dfg</name>
<manager>ahjghj</manager>
<startDate>21-01-2003</startDate>
<endDate>21-01-2003</endDate>
</xu:element>
</xu:append>
</xu:modifications>
If there is anything else that you can suggest, it would be much
appreciated.
Thanks
Belinda
----- Original Message -----
From: "Mark J. Stang" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, January 22, 2003 4:15 PM
Subject: Re: Xindice and XUpdate
> Belinda,
> At the very least, just before you send it off to Xindice, print out the
> EXACT
> string. One thing is for sure, any deviation or mismatch and the XUpdate
> fails!
>
> Mark
>
From: "Jeff Greif" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, January 22, 2003 3:54 PM
Subject: Re: Xindice and XUpdate
> 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>";
> >
>
>