Reputation: 189
I'm trying to implement XSD schema versioning and I'd like to use the optional XSD schema attribute named 'version', but I'm unsure how to read it using Qt XML patterns library.
Example :
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.example.org/ns/personName/1"
xmlns:namens="http://www.example.org/ns/personName/1"
version="1.5">
...
I'd like to be able to extract the XSD version, then compare this with an actual element with protocol version element in XML doc.
Any help would be appreciated :)
Upvotes: 1
Views: 611