msxml3: Fix a few error messages.

This commit is contained in:
Adam Martinson 2010-11-24 13:53:17 -06:00 committed by Alexandre Julliard
parent 2f0e73f896
commit 54d949fbe8
2 changed files with 11 additions and 3 deletions

View File

@ -2656,9 +2656,15 @@ static HRESULT WINAPI domdoc_validateNode(
{ {
++validated; ++validated;
/* TODO: get a real error code here */ /* TODO: get a real error code here */
TRACE("schema validation failed\n"); if (hr == S_OK)
if (hr != S_OK) {
TRACE("schema validation succeeded\n");
}
else
{
ERR("schema validation failed\n");
err_code = E_XML_INVALID; err_code = E_XML_INVALID;
}
} }
else else
{ {
@ -2669,7 +2675,7 @@ static HRESULT WINAPI domdoc_validateNode(
if (!validated) if (!validated)
{ {
TRACE("no DTD or schema found\n"); ERR("no DTD or schema found\n");
err_code = E_XML_NODTD; err_code = E_XML_NODTD;
hr = S_FALSE; hr = S_FALSE;
} }

View File

@ -1356,6 +1356,8 @@ HRESULT SchemaCache_validate_tree(IXMLDOMSchemaCollection2* iface, xmlNodePtr tr
* do we try to load from that? */ * do we try to load from that? */
if (schema) if (schema)
return Schema_validate_tree(schema, tree); return Schema_validate_tree(schema, tree);
else
WARN("no schema found for xmlns=%s\n", get_node_nsURI(tree));
return E_FAIL; return E_FAIL;
} }