Qt XML Patterns Reference Documentation

Usage

Usage

Subclassing

Thread Safety

XQuery Sequence

XQuery Sequences

Comparing QXmlNames

Comparing QXmlNames

Running XQueries

Running XPath Expressions

Running XSLT Stylesheets

Binding A Query To A Starting Node

Reentrancy and Thread-Safety

Error Handling

Resource Management

Event Handling

XML Schema Version

XML Schema Version

A Short Path to XQuery

Shorthand Form

Name Tests

Empty Method Not Robust

Constructing Elements

XQuery-introduction

Introduction

Using Path Expressions To Match And Select Items

Axis Steps

Axis Specifiers

Node Tests

Shorthand Form

Name Tests

Wildcards in Name Tests

Using Predicates In Path Expressions

Positional Predicates

Boolean Predicates

Constructing Elements

Element Constructors are Expressions

Constructing Atomic Values

Running The Cookbook Examples

Further Reading

FAQ

Why didn't my path expression match anything?

What if my input namespace is different from my output namespace?

Why doesn't my return clause work?

Why didn't my expression get evaluated?

My predicate is correct, so why doesn't it select the right stuff?

Why doesn't my FLWOR behave as expected?

Why are my elements created in the wrong order?

Why can't I use <@keyword>true</@keyword> and <@keyword>false</@keyword> in my XQuery?

C++ Source Code Analyzer Example

Introduction

Reporting Uses of Mutable Global Variables

A C++ application

The XML description of the C++ application

The XQuery for finding global variables

Running the XQuery

The XQuery output

XQuery Code Walk-Through

File System Example

Node_Type

main toNodeIndex

toNodeIndex of convenience

next node on axis

to file info

nextSibling helper

the standard code pattern

Introduction

The User Interface

Running your own XQueries

Code Walk-Through

The Custom Node Model Class: FileTree

Accessing The Node Model

Building And Traversing The Node Model

The UI Class: MainWindow

Selecting A Directory To Model

Selecting And Running An XQuery

Node Model Building Strategy

Qt XML Patterns

Getting Started

Articles and Guides

Examples

API Reference

License Information

Recipes Example

displayQuery() slot

evaluate() function

Introduction

The User Interface

Running your own XQueries

Code Walk-Through

The UI Class: QueryMainWindow

XML Schema Validation Example

Introduction

The User Interface

Validating XML Instance Documents

Code Walk-Through

The UI Class: MainWindow

XQuery

qtxmlpatterns_example_query

QtXDM

qtxmlpatterns_example_query2

Binding To Time

Binding To QVariantList

Handling QXmlNames

Patternist

Introduction

Advantages of Using Qt XML Patterns and XQuery

Using the Qt XML Patterns Module

Running the query engine from your Qt application

Running the query engine from the command line utility

The XQuery Data Model

Binding program variables to XQuery variables

Binding To QVariant::Time

Binding To QVariantList

Interpreting XQuery results

Handling QXmlNames

No mapping for xs:time

Using XQuery with Non-XML Data

More on Using Qt XML Patterns with Non-XML Data

Security Considerations

Code Injection

Denial of Service Attacks

Features and Conformance

XQuery 1.0

XSLT 2.0

XPath 2.0

xml:id

XML Schema 1.0

Resource Loading

XML

Qt XML Patterns Examples

Qt XML Patterns C++ Classes