MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / validate

Method validate

DAEValidator/library/src/XmlSchema.cpp:33–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 }
32
33 bool XmlSchema::validate(const XmlDoc & doc) const
34 {
35 int result = 1;
36 if (xmlSchemaValidCtxtPtr ctxt = xmlSchemaNewValidCtxt(mSchema))
37 {
38 result = xmlSchemaValidateDoc(ctxt, doc.mDoc);
39 xmlSchemaFreeValidCtxt(ctxt);
40 }
41 return result == 0;
42 }
43
44 XmlSchema::operator bool() const
45 {

Callers 2

ValidateAgainstSchemaMethod · 0.45
TEST_METHODFunction · 0.45

Calls 3

xmlSchemaNewValidCtxtFunction · 0.85
xmlSchemaValidateDocFunction · 0.85
xmlSchemaFreeValidCtxtFunction · 0.85

Tested by 1

TEST_METHODFunction · 0.36