Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool XMLFOMParser::isWellFormed(const std::string& text) const {
- QXmlSchema schema;
- bool ok = schema.load(QByteArray(SOMSchema_xsd));
- std::cout<< SOMSchema_xsd << std::endl << "--------------" << std::endl;
- std::cout << text << std::endl << "---------------" << std::endl;
- QXmlSchemaValidator validator(schema);
- bool result = validator.validate(QByteArray(text.data()));
- return result;
- }
- 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.
- 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