[Interest] Handling XML Schemas in Qt without QXmlSchemaValidator

Jakob Lettenbichler jakob.lettenbichler at artech.at
Mon May 20 10:25:34 CEST 2019


Hiho,

thanks a lot for your clarification then! As long as the functionality will not be removed forever, I can live with that (the schemas will stay the same anyways, and changing a few function calls is not impossible).
I completely understand that old code needs to be retired, I simply hope that the new stuff replacing the old contains a superset - not a subset - of the features.

Cheers from Vienna,
Jakob



Von: Interest [mailto:interest-bounces at qt-project.org] Im Auftrag von Yves Maurischat
Gesendet: Montag, 20. Mai 2019 10:00
An: interest at qt-project.org
Betreff: Re: [Interest] Handling XML Schemas in Qt without QXmlSchemaValidator

Hi Jakob,

regarding the 'deprecated' state of XmlPatterns: There wont be an further development for this module, but I also doubt that it will be removed before Qt 6. So as long as you're using Qt 5 you're safe to use XmlPatterns. Qt 6 might be still 2 years away, and as you're using it professionally, I assume that you'll probably wait at least till the release of Qt 6.1 (or even longer) anyway before upgrading your project to it. Until then there might be another Qt (conforming) solution to the problem.

So in my opinion you've got 2 options (depending on the scope and lifecycle of your project):
a) use the Xml Schema related classes from the XmlPatterns module and worry about it going away (much) later, and maybe even have a Qt (conforming) solution by then, or
b) use an external library like CodeSynthesis XSD or something similar and worry about their API changes and usage and naming patterns that differ from Qt's patterns etc.

IMHO using the Qt modules while they are still available is usually the better option.
Mit freundlichen Grüßen | Kind regards,

Yves Maurischat
Senior Software Engineer

basysKom GmbH
Robert-Bosch-Str. 7 | 64293 Darmstadt | Germany
Tel: +49 6151 870 589 0| Fax: -199
yves.maurischat at basyskom.com<mailto:yves.maurischat at basyskom.com> | www.basyskom.com<http://www.basyskom.com>

Handelsregister: Darmstadt HRB 9352
Geschaeftsfuehrung: Heike Ziegler
Am 16.05.2019 um 09:31 schrieb Jakob Lettenbichler:
Hiho,

This is my first mail to the mailing list, so please be gentle with me…
We are using QXmlStreamReader and –writer for handling our xml files (QDom seems to be dead, if I interpret the lines in the documentation correctly: https://doc.qt.io/qt-5/qtxml-index.html ).
Qt seems to have a nice bunch of classes for Xml Schemas in the Xml patterns module (https://doc.qt.io/qt-5/qtxmlpatterns-index.html ) but using them seems to be dangerous, since the release notes mark them as deprecated: (https://wiki.qt.io/New_Features_in_Qt_5.13 )
I do not find any comparable class in the Qt documentation, therefore I would like to ask the professionals here, how to work with Xml Schemas in Qt without that module.
Many thanks in advance for helping me out,

Cheers,
Jakob

P.S.: My colleague has asked a similar question in the forum (https://forum.qt.io/topic/102834/proper-successor-for-qxmlschemavalidator ), but they sent us here. So please don’t send us back…

----------------------------------------
Dr. Jakob Lettenbichler
A&R TECH GMBH                  ...we make it move...
Marksteinergasse 13, 1210 Vienna, Austria
Tel.: +43 1 2720001- 67      Fax.: +43 1 2720001-11
mailto:jakob.lettenbichler at artech.at     http://www.artech.at<http://www.artech.at/>

FN 181686 k. HG Wien, UID-Nr. ATU 47056901, zertifiziert nach ISO 9001:2000 Nr. 4036/0
Der Inhalt dieser E-Mail ist vertraulich und ausschließlich für den bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form der Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des Inhaltes dieser E-Mail unzulässig ist. Wir bitten Sie, sich in diesem Fall mit dem Absender der E-Mail in Verbindung zu setzen und die E-Mail zu vernichten. Für Übermittlungsfehler oder sonstige Irrtümer bei der Übermittlung besteht keine Haftung.
This e-mail is intended solely for the person to whom it is addressed and may contain confidential or legally privileged information. Access to this e-mail by anyone else is unauthorized. If an addressing or transmission error has misdirected this e-mail, please notify the author by replying to this e-mail and destroy this e-mail and any attachments. E-mail may be susceptible to data corruption, interception, unauthorized amendment, viruses and delays or the consequences thereof. If you are not the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited.




_______________________________________________

Interest mailing list

Interest at qt-project.org<mailto:Interest at qt-project.org>

https://lists.qt-project.org/listinfo/interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190520/db765853/attachment.html>


More information about the Interest mailing list