New in XMLSpy Version 2015 is an innovative implementation of XQuery Update Facility. XQuery Update Facility is an extension of the XQuery language that allows you to make changes in an XML instance using “update expressions” that insert, delete, replace, or rename nodes.
What makes the XMLSpy implementation so innovative? According to the standard, that the result of an XQuery Update execution is a new XML file based on the original file and the specified modifications. This means that each execution completely reformats the document. XMLSpy lets you skip this intermediary step, because it allows you to make updates directly in the specified XML file(s) without having to create a new file.
In this way, XMLSpy provides an intelligent mechanism for implementing XQuery Update via a familiar find-and-replace paradigm. However, because XQuery Update provides for sophisticated updates using the power of FLWOR statements, it overcomes the limitations of find-and-replace and lets you make complex, intelligent XML file modifications quickly and easily.
As you compose your XQuery Update statements, the real-time results pane lets you preview the results of the changes to the affected nodes. Once you’re ready to apply them, you can choose to execute the updates in the current file or across all open files, a folder, or an entire XMLSpy project – with a single click.
See how it all works in this brief video, which walks you quickly through editing XQuery Update expressions in XMLSpy and also serves as a quick tutorial about how XQuery update Facility works if you’re unfamiliar with the syntax.
XQuery Update Facility Editor in XMLSpy