Gav_at_HRSTS
Gav_at_HRSTS

Reputation: 189

How to read 'Version' attribute of XSD schema element <xs:schema

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

Answers (1)

Gav_at_HRSTS
Gav_at_HRSTS

Reputation: 189

Parse XSD as an XML document then extract the parts needed.

Upvotes: 1

Related Questions