XML Node value update with XQuery
<p>Im using XQuery in my Project, and to execute XQueries im using SAXON9 from JAVA.</p>

<p>Here the problem is when im trying to update a node value im getting an exception.
I don't have any problems with selecting the data from xml file using XQuery.The only problem im facing is with data modification through xquery.</p>

<p>This is my query:
replace value of node (for $fname in doc("D:/contacts.xml")/Directory/Contacts/Contact[@id='0045d6cd-2c79-4a8d-879b-e8b0b9bfd16e']/LastName return $fname) 
with 'foo'.</p>

<p>This is the Exception:
javax.xml.xquery.XQException: Unexpected token "replace value" in path expression.</p>

<p>Can anyone tell me that do i need to any configuration settings in SAXON9 for executing the above query successfully.</p>

<p>I heard that there is a configuration setting for Update in xquery. how can i do that in SAXON.</p>
