msxml3: Implement IXMLDOMCDATASection_get_nodeValue.

This commit is contained in:
Alistair Leslie-Hughes 2008-03-01 22:51:00 +11:00 committed by Alexandre Julliard
parent f9c5856c8c
commit c43b0706a3
2 changed files with 8 additions and 0 deletions

View File

@ -251,6 +251,7 @@ static HRESULT WINAPI xmlnode_get_nodeValue(
switch ( This->node->type )
{
case XML_CDATA_SECTION_NODE:
case XML_COMMENT_NODE:
case XML_PI_NODE:
case XML_ATTRIBUTE_NODE:

View File

@ -2323,6 +2323,7 @@ static void test_xmlTypes(void)
if(hr == S_OK)
{
IXMLDOMNode *pNextChild = (IXMLDOMNode *)0x1;
VARIANT var;
hr = IXMLDOMElement_appendChild(pRoot, (IXMLDOMNode*)pCDataSec, NULL);
ok(hr == S_OK, "ret %08x\n", hr );
@ -2388,6 +2389,12 @@ static void test_xmlTypes(void)
ok(hr == S_OK, "ret %08x\n", hr );
ok(len == 21, "expected 21 got %ld\n", len);
/* test length property */
hr = IXMLDOMCDATASection_get_nodeValue(pComment, &var);
ok(hr == S_OK, "ret %08x\n", hr );
ok( !lstrcmpW( str, _bstr_("This &is a ; test <>\\") ), "incorrect text string\n");
VariantClear(&var);
IXMLDOMCDATASection_Release(pCDataSec);
}