1

How does one validate an XML document against an XML schema in Qt? There must be Qt facilities to do that, but I am unable to find them...

I am using the latest Qt version (6.2.4).

user1387866
  • 2,834
  • 3
  • 22
  • 28
  • I haven't checked if this still works for Qt6, but Qt5 has an example app that shows how to validate a schema [here](https://doc.qt.io/qt-5/qtxmlpatterns-schema-example.html). – JarMan Apr 05 '22 at 15:19

1 Answers1

1

Bad news

I have recently been looking into xml patterns using Qt and unfortunately it seems that QtXmlPatterns was available until Qt 5.13 where it was deprecated and completely removed from Qt 6.x.

See Qt Xml Patterns 5.15.11.

I have seen other suggestions online to implement xerces-C++.

Blair L
  • 11
  • 1