Thank you!

 

Tim

 

  _____  

From: general-boun...@developer.marklogic.com
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Wayne Feick
Sent: Tuesday, February 02, 2010 8:41 PM
To: General Mark Logic Developer Discussion
Subject: Re: [MarkLogic Dev General] Attribute node replacement

 

xquery version "1.0-ml";

xdmp:document-insert("/test.xml", <one><two this="foo"/></one>);
fn:doc("/test.xml");
xdmp:node-replace(fn:doc("/test.xml")/one/two/@this, attribute that
{"bar"});
fn:doc("/test.xml")

On Tue, 2010-02-02 at 17:37 -0800, Tim Meagher wrote: 



Would someone show me what the syntax is for replacing the value of an
attribute node using xdmp:node-replace()?

 

Thank you!

 

Tim Meagher



 

_______________________________________________
General mailing list
General@developer.marklogic.com
http://xqzone.com/mailman/listinfo/general

Reply via email to