---
title: "革新的なXPath/XQueryツールが登場"
date: "2015-03-03"
categories: 
  - "xpath"
  - "xquery"
tags: 
  - "xmlspy"
  - "xpath"
  - "xquery"
description: XMLSpy 2015では、XPathおよびXQueryの機能を強化し、XPath 3.1およびXQuery 3.1に対応。これにより、数式の作成とテストを効率化することができます。
---
Status: #blog

Tags:  #xmlspy #xpath #xquery

Categories: [xpath+xquery](/blog/ja/category/xpathxquery.md) | [xpath+xquery](/blog/ja/category/xpathxquery.md)
# 革新的なXPath/XQueryツールが登場

XMLSpyのバージョン2015、リリース3において、XPathおよびXQueryのサポートが大幅に強化されました。最新の規格バージョンである[XPath 3.1](http://www.w3.org/TR/xpath-31/)および[XQuery 3.1](http://www.w3.org/TR/xquery-31/)のサポートを追加したことに加え、XPath/XQueryウィンドウにおいて、XPathおよびXQueryの式を開発およびテストするための革新的な新機能が追加されました。

これらの新しいツールを使用することで、XSLTやXQueryのより大きなドキュメントに追加する前に、式や文を開発、評価、改善するプロセスが大幅にスピードアップします。これにより、**時間と労力を節約できる**だけでなく、各演算子や関数の動作を理解し、式が期待通りの結果をすぐに返すことを確認できます。特に、XPath/XQuery 3.1で導入された新しいマップや配列機能がどのように実装されているかを学ぶ上で、関数の説明や入力支援機能が非常に役立ちました。

![XPathおよびXQueryツール](/blog/images/C0019116_700x335.jpg)

<!--more-->

以下に示すように、XPath/XQuery ウィンドウは、XPath (1.0/2.0/3.1) および XQuery (1.0/3.1) のすべてのバージョンに対応しており、さらに [XQuery 更新機能 (1.0/3.0)](https://www.youtube.com/watch?v=pJ0380Y1JPg) もサポートしています。

 

![画像](https://lh3.ggpht.com/-eOZYDBDcIW4/VPcWBhFBAYI/AAAAAAAAAos/KJ3Ces2He5c/image_thumb.png?imgmax=800 "image")

XPath/XQuery ウィンドウには、作業中に切り替え可能な2つのモードがあります。それは、構築モード（Builder）と評価モード（Evaluator）です。

**構築モード**

ビルダーモードでは、XPathやXQueryの式を迅速かつ容易に開発するための様々なツールを利用できます

> **\- 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.

[![(画像は添付されていません。テキストのみの翻訳です。)](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)

**評価モード**

評価モードを使用すると、XPath/XQueryの記述を作成しながら、その結果をテストすることができます。これにはいくつかの利点があります

> **\- 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.

[![(画像は添付されていません。テキストのみの翻訳です。)](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)

これらの新しいXPathおよびXQueryツールをぜひお試しください。無料でダウンロードできます [XMLSpyの30日間試用版](https://www.altova.com/ja/download-trial.html).

最後に、XPath/XQuery ウィンドウは、時間とエラーの削減に役立つだけでなく、最新の規格バージョンに導入された新機能について学ぶ際にも役立ちます。また、Altovaが提供する新しい無料ツールも活用できます [オンラインXPath 3.0トレーニングコース](https://www.altova.com/ja/training/xpath3/default.aspx) .
