Guest User

Untitled

a guest
Feb 18th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. bool XMLFOMParser::isWellFormed(const std::string& text) const {
  2. QXmlSchema schema;
  3. bool ok = schema.load(QByteArray(SOMSchema_xsd));
  4. std::cout<< SOMSchema_xsd << std::endl << "--------------" << std::endl;
  5. std::cout << text << std::endl << "---------------" << std::endl;
  6. QXmlSchemaValidator validator(schema);
  7. bool result = validator.validate(QByteArray(text.data()));
  8. return result;
  9. }
  10.  
  11. Error XSDError in http://standards.ieee.org/downloads/1516/1516.2-2010/IEEE1516-DIF-2010.xsd, at line 1, column 0: Premature end of document.
  12. Error XSDError in file:///my/program.exe, at line 2, column 251: Loaded schema file is invalid.
Add Comment
Please, Sign In to add comment