blob: 2d6adbe9e55ca3b7a85552fcf1504d2ffebd3215 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#ifndef XMLUTILS_H
#define XMLUTILS_H
#include <QtCore/QSharedPointer>
#include <QtCore/QString>
class XQuery
{
public:
Q_DISABLE_COPY(XQuery);
virtual ~XQuery();
QString evaluate(QString xPathExpression, QString *errorMessage);
static QSharedPointer<XQuery> create(const QString &focus, QString *errorMessage);
protected:
XQuery();
virtual QString doEvaluate(const QString &xPathExpression, QString *errorMessage) = 0;
};
QString xsl_transform(const QString &xml, const QString &xsl, QString *errorMessage);
#endif // XMLUTILS_H
|