[xquery-talk] Update XML using Saxon
Michael Kay
mhk at mhk.me.uk
Thu Nov 18 12:32:29 PST 2004
As I mentioned in reply to your identical email on another forum, XQuery
does not currently include any syntax for performing in-situ updates, and
neither does Saxon.
Michael Kay
_____
From: talk-bounces at xquery.com [mailto:talk-bounces at xquery.com] On Behalf Of
sanjay vig
Sent: 18 November 2004 11:13
To: talk at xquery.com
Subject: [xquery-talk] Update XML using Saxon
Hi,
I am trying to use the following query to update xml but I am getting error
messages that incorrect syntex near insert.
can you suggest how do we update ,delete notes from an xml using xuery.
update for $a in input("http://ereportserver:8080/XML/bib.xml
<http://ereportserver:8080/index.jsp?> )/bib/book
where $a/title = "The Economics of Technology and Content for Digital TV"
do (
insert <affiliation>CITI</affiliation> following $a/author/first
rename $a/author as editor
)
Regards,
Sanjay Vig
_____
Do you Yahoo!?
Discover all thats new in My <http://my.yahoo.com> Yahoo!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xquery.com/pipermail/talk/attachments/20041118/fa3859cd/attachment.htm
More information about the talk
mailing list