I ran this xupdate command: <?xml version="1.0" encoding="UTF-8"?> <xupdate:modifications version="1.0" xmlns:xupdate="http://www.xmldb.org/xupdate">
<xupdate:append select="/EML[HEAD/TEMPLATE_DOC_ID='BBT_0_1']/BODY/NODES/NODE[starts-with(@PARENT,'/EML/BODY/NEURON_STAINING')]" > <xupdate:attribute name="old-xpath-prefix">/EML/BODY/NEURON_STAINING-2</xupdate:attribute> <xupdate:attribute name="new-xpath-prefix">/EML/BODY/NEURON_STAINING</xupdate:attribute> </xupdate:append> </xupdate:modifications> The two files that the selected matched worked perfectly but the other 19 files in the collection got this node appened to root node: <temporaryXUpdateTree old-xpath-prefix="/EML/BODY/NEURON_STAINING-2" new-xpath-prefix="/EML/BODY/NEURON_STAINING"/> Anyone seen this before? Is there a way I can avoid this or do I need to run a delete command after my modifications? Todd Byrne