Commit 39f0504c authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msxml3: Implemented xmlnode_get_nodeTypedValue 'boolean' data type handling.

parent 47e037d4
......@@ -966,6 +966,8 @@ inline HRESULT VARIANT_from_xmlChar(xmlChar *str, VARIANT *v, BSTR type)
V_VT(v) = VT_I4;
else if(!lstrcmpiW(type, szFixed))
V_VT(v) = VT_CY;
else if(!lstrcmpiW(type, szBoolean))
V_VT(v) = VT_BOOL;
else
{
FIXME("Type handling not yet implemented\n");
......
......@@ -155,6 +155,7 @@ static const CHAR szTypeValueXML[] =
" <number2 dt:dt=\"NUMbEr\">-3.71e3</number2>\n"
" <int dt:dt=\"int\">-13</int>\n"
" <fixed dt:dt=\"fixed.14.4\">7322.9371</fixed>\n"
" <bool dt:dt=\"boolean\">1</bool>\n"
"</root>";
static const CHAR szBasicTransformSSXMLPart1[] =
......@@ -4073,6 +4074,19 @@ static void test_NodeTypeValue(void)
IXMLDOMNode_Release(pNode);
}
hr = IXMLDOMDocument2_selectSingleNode(doc, _bstr_("root/bool"), &pNode);
ok(hr == S_OK, "ret %08x\n", hr );
if(hr == S_OK)
{
hr = IXMLDOMNode_get_nodeTypedValue(pNode, &v);
ok(hr == S_OK, "ret %08x\n", hr );
ok(V_VT(&v) == VT_BOOL, "incorrect type\n");
ok(V_BOOL(&v) == VARIANT_TRUE, "incorrect value\n");
VariantClear( &v );
IXMLDOMNode_Release(pNode);
}
}
IXMLDOMDocument2_Release(doc);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment