Click here to Skip to main content
15,924,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to print a CString Pin
V.2-Aug-04 2:36
professionalV.2-Aug-04 2:36 
QuestionHow to display part of Meta File Pin
Azghar Hussain1-Aug-04 23:40
professionalAzghar Hussain1-Aug-04 23:40 
QuestionCheck if download? Pin
Larsson1-Aug-04 22:50
Larsson1-Aug-04 22:50 
Question[MFC] How can I print a HTML file using the WebBrowser AcvtiveX? Pin
Erik1-Aug-04 22:49
Erik1-Aug-04 22:49 
GeneralSearch node in IXMLDOMDocument Pin
JensB1-Aug-04 22:46
JensB1-Aug-04 22:46 
GeneralRe: Search node in IXMLDOMDocument Pin
Antony M Kancidrowski2-Aug-04 0:09
Antony M Kancidrowski2-Aug-04 0:09 
GeneralRe: Search node in IXMLDOMDocument Pin
JensB2-Aug-04 1:25
JensB2-Aug-04 1:25 
GeneralRe: Search node in IXMLDOMDocument [modified] Pin
Antony M Kancidrowski2-Aug-04 3:08
Antony M Kancidrowski2-Aug-04 3:08 
It was quite a while ago that I looked at that class, I just remembered that there was a Find implementation.

If it generally finds a node then you ought to be able to change the function to return CXMLNode*.
CXMLNode* CXMLNode::Find(CXMLNode* rootNode, LPCTSTR nodeName, LPCTSTR nodeText, LPCTSTR attribName, LPCTSTR attribValue)

Where it adds the node to the root replace
CXMLNode *pNode = new CXMLNode(Nodes[i]);
rootNode->Nodes.Add(pNode);

with
return Nodes[i];

And right at the end of the function
    Nodes[i]->Find(rootNode,nodeName,nodeText,attribName,attribValue);
  
  }
  return NULL;
}


For your purposes you will probably not need to pass rootNode to the function and therefore all refrences to it can be removed.

Ant.

I'm hard, yet soft.
I'm coloured, yet clear.
I'm fruity and sweet.
I'm jelly, what am I? Muse on it further, I shall return!
- David Williams (Little Britain)

GeneralRe: Search node in IXMLDOMDocument Pin
palbano2-Aug-04 6:26
palbano2-Aug-04 6:26 
GeneralRe: Search node in IXMLDOMDocument Pin
JensB2-Aug-04 20:30
JensB2-Aug-04 20:30 
GeneralRe: Search node in IXMLDOMDocument Pin
palbano3-Aug-04 7:52
palbano3-Aug-04 7:52 
GeneralRe: Search node in IXMLDOMDocument Pin
Anonymous3-Aug-04 22:23
Anonymous3-Aug-04 22:23 
GeneralRebuilding ClassWizard info/data Pin
0v3rloader1-Aug-04 21:50
0v3rloader1-Aug-04 21:50 
GeneralRe: Rebuilding ClassWizard info/data Pin
Michael P Butler1-Aug-04 22:43
Michael P Butler1-Aug-04 22:43 
GeneralRe: Rebuilding ClassWizard info/data Pin
0v3rloader2-Aug-04 0:16
0v3rloader2-Aug-04 0:16 
GeneralRe: Rebuilding ClassWizard info/data Pin
Michael P Butler2-Aug-04 0:29
Michael P Butler2-Aug-04 0:29 
QuestionHow to select a folder in TreeView and list its contents in a ListView Control? Pin
Arun AC1-Aug-04 21:47
Arun AC1-Aug-04 21:47 
AnswerRe: How to select a folder in TreeView and list its contents in a ListView Control? Pin
Allenpaul1-Aug-04 23:25
Allenpaul1-Aug-04 23:25 
GeneralI need a kind of scheduler Pin
muharrem1-Aug-04 21:14
muharrem1-Aug-04 21:14 
GeneralRe: I need a kind of scheduler Pin
ThatsAlok1-Aug-04 23:28
ThatsAlok1-Aug-04 23:28 
GeneralRe: I need a kind of scheduler Pin
muharrem2-Aug-04 2:50
muharrem2-Aug-04 2:50 
GeneralRe: I need a kind of scheduler Pin
David Crow2-Aug-04 3:36
David Crow2-Aug-04 3:36 
QuestionHow to clear the screen in DOS Pin
CreepingFeature1-Aug-04 20:35
CreepingFeature1-Aug-04 20:35 
AnswerRe: How to clear the screen in DOS Pin
V.1-Aug-04 20:38
professionalV.1-Aug-04 20:38 
AnswerRe: How to clear the screen in DOS Pin
ThatsAlok1-Aug-04 22:21
ThatsAlok1-Aug-04 22:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.