if i use next sibling method in a for loop i wiil get all text nodes in single list control.i have to display one place and name in one list control and another in 2nd list control.my code as follows....
MSXML2::IXMLDOMElementPtr m_pDocRoot;
MSXML2::IXMLDOMNodePtr pChild = m_pDocRoot->firstChild;
DisplayChildren(pChild);
void CPatientInformationDlg::DisplayChildren(MSXML2::IXMLDOMNodePtr pParent)
{
DisplayChild1(pParent);
}
void CPatientInformationDlg::DisplayChild1(MSXML2::IXMLDOMNodePtr pChild)
{
MSXML2::IXMLDOMNodePtr pChild1;
for ( pChild1= pChild->firstChild;
NULL != pChild1;
pChild1 = pChild1->nextSibling)
{
VARIANT v;
v=pChild1->nodeTypedValue;
m_Llist2.InsertItem(0,v.bstrVal);
}
}
plzzz if anyone know this ans plzzzzzzzz tell ans with example code....