---
title: "Innovatieve nieuwe tools voor XPath/XQuery"
date: "2015-03-03"
categories: 
  - "xpath"
  - "xquery"
tags: 
  - "xmlspy"
  - "xpath"
  - "xquery"
description: Ontdek de verbeterde XPath- en XQuery-tools in XMLSpy 2015, die ondersteuning bieden voor XPath 3.1 en XQuery 3.1 en zijn ontworpen om de ontwikkeling en het testen van expressies te vereenvoudigen.
---
Status: #blog

Tags:  #xmlspy #xpath #xquery

Categories: [xpath+xquery](/blog/nl/category/xpathxquery.md) | [xpath+xquery](/blog/nl/category/xpathxquery.md)
# Innovatieve nieuwe tools voor XPath/XQuery

De ondersteuning voor XPath en XQuery in XMLSpy is aanzienlijk verbeterd met Release 3 van versie 2015. Naast de toevoeging van ondersteuning voor de nieuwste versies van de standaarden – [XPath 3.1](http://www.w3.org/TR/xpath-31/) en [XQuery 3.1](http://www.w3.org/TR/xquery-31/) – hebben we innovatieve nieuwe tools toegevoegd voor het ontwikkelen en testen van XPath- en XQuery-expressies in het XPath/XQuery-venster.

Deze nieuwe tools maken het veel sneller om expressies en statements te ontwikkelen, te evalueren en te verfijnen voordat ze worden toegevoegd aan grotere XSLT- of XQuery-documenten. Dit **bespaart u tijd en frustratie** – omdat u kunt begrijpen hoe elke operator of functie werkt en ervoor kunt zorgen dat uw expressies direct de gewenste resultaten opleveren. Ik vond de functiebeschrijvingen en de hulpmiddelen voor het invoeren vooral nuttig om te leren hoe de nieuwe functies voor maps en arrays in XPath/XQuery 3.1 zijn geïmplementeerd.

![XPath- en XQuery-hulpmiddelen](/blog/images/C0019116_700x335.jpg)

<!--more-->

Zoals u hieronder kunt zien, ondersteunt het XPath/XQuery-venster alle versies van XPath (1.0/2.0/3.1) en XQuery (1.0/3.1), evenals [de XQuery Update Facility (1.0/3.0)](https://www.youtube.com/watch?v=pJ0380Y1JPg).

 

![afbeelding](https://lh3.ggpht.com/-eOZYDBDcIW4/VPcWBhFBAYI/AAAAAAAAAos/KJ3Ces2He5c/image_thumb.png?imgmax=800 "image")

Het XPath/XQuery-venster heeft twee modi: "Builder" (bouwer) en "Evaluator" (evaluator), waartussen u kunt schakelen tijdens het werken.

**Bouwmodus**

De "ontwerpmodus" geeft u toegang tot talrijke tools die het ontwikkelen van XPath- en XQuery-expressies snel en eenvoudig maken:

> **\- Point-and-click expression building**, via a comprehensive a list of operators, expressions, and built in functions, which you can insert in an expression by double clicking. Functions are inserted with their arguments indicated by “#” placeholders, making it easy to build expressions quickly and error-free.

> **\- Mouse-over hints** that describe each operator, expression, and function, so you can be sure to choose the correct one for the expression at hand.

> **\- Enhanced entry helpers** that display the description of built in functions, and then show helpful function and parameter details as you type, speeding development and ensuring accuracy.

> **\- Ready-to-use code snippets** for complex statements such as FLWOR and XQuery Update Facility expressions, found in the Operator/Expression pane. Here you can read a description of each and insert the expression at the cursor by double clicking.

[![clip_image004](https://lh3.ggpht.com/-ZesjtsKcCo0/VPSQUH4KTyI/AAAAAAAAAoA/LpXths2pcoI/clip_image004_thumb.png?imgmax=800 "clip_image004")](http://lh4.ggpht.com/-hP-444Vb3-c/VPSQTzlw1JI/AAAAAAAAAn8/SbJyEoO1YD8/s1600-h/clip_image004%25255B3%25255D.png)

**Evaluatiemodus**

De evaluatiemodus stelt u in staat om de resultaten van uw XPath-/XQuery-statements tijdens het werken te testen, en dit heeft verschillende voordelen:

> **\- Save time and avoid errors** by testing expressions before adding them to your document and adjusting as needed.

> \- **Evaluate an XPath or XQuery expression against one or more files**: the active document, all open files, a folder, or an entire XMLSpy project.

> \- **Utilize nine tabs** for developing and testing complex expressions. Once you have composed an expression on one tab, switching to a new tab lets you build and analyze the results of a new expression – but when you switch back to the previous tab, the expression and results are still there. This allows you develop multiple expressions side-by-side and incrementally make changes to each one of them, preserving both the expression and the result for each tab.

[![clip_image005](https://lh4.ggpht.com/-Tl2hLyVZPQo/VPSQU-gQAII/AAAAAAAAAoU/DsvmTqaQhn8/clip_image005_thumb.png?imgmax=800 "clip_image005")](http://lh5.ggpht.com/-v8KfzvQjCeY/VPSQUSkjZSI/AAAAAAAAAoI/Oq_z1a6XiKw/s1600-h/clip_image005%25255B3%25255D.png)

Probeer nu deze nieuwe XPath- en XQuery-tools door een gratis proefversie van XMLSpy te downloaden, geldig voor [30 dagen](https://www.altova.com/nl/download-trial.html).

Nog een laatste opmerking: ik heb al gezegd dat het XPath/XQuery-venster niet alleen tijd en fouten bespaart, maar ook helpt als u meer wilt leren over de nieuwe functies in de nieuwste versies van de standaarden. U kunt ook gebruik maken van de nieuwe, gratis tools van Altova [Online XPath 3.0 trainingcursus](https://www.altova.com/nl/training/xpath3/default.aspx) .
