Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QXmlSchemaValidator reports "Premature end of file"

QXmlSchemaValidator reports "Premature end of file"

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 673 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • bclayB Offline
    bclayB Offline
    bclay
    wrote on last edited by
    #1

    I have several XML and XSD files provided by the simulation community that describe a method for passing task and status messages. I am trying to use the QXmlSchemaValidator class to validate the messages but always get "Premature end of file" exception after calling schema.isValid. My code is based on the XmlPatterns example and I am running on Windows 7 with VS 2013. I have tried various other XML validators including the Notepad++ XML validation tools and they indicate the schema is valid. Are there known issues with the XML classes on Windows. I can use the XmlStreamReader to parse both the XSD and the XML files without any problem.

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      could you provide a code example and an example xsd file?

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved