[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-c-users
Subject:    Re: DOMNode::getTextContent()
From:       PB <newbarker () gmail ! com>
Date:       2011-01-13 23:16:37
Message-ID: AANLkTikeRphkWrRcOezuPa5g+rYua-xPoPN5mE-rdcOi () mail ! gmail ! com
[Download RAW message or body]

On Thu, Jan 13, 2011 at 11:13 PM, Steele, Raymond
<raymond.steele@lmco.com> wrote:
> Can someone help me out with this?
> 
> version xerces-C++ 3.1.0
> Taking the following code:
> 
> DOMDocument* doc = parserName->getDocument();
> DOMNodeList* list = doc->getElementByTageName(X("S_RPS"));
> DOMNode* node = list->item(0)->getFirstChild();
> cout << node->getNodeType() << endl;
> cout << node->getTextContent << endl;
> 
> The output:
> 3
> 92dc648
> 
> Question: If node is of type '3' (TEXT_NODE), how come I keep receiving what looks \
> like a memory address. I cannot seem to get the correct information from the \
> document.

You're not calling the getTextContent method. Put parathenses: getTextContent().

Regards,

Pete


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic