Hi,
thats great if you want to test it. Take a look in
tests/DOM/DOMTest/DTest.cpp. The spec says we have to return an XMLCh so
Eriks is closer.
> const XMLCh* DOMNodeImpl::getTextContent() const
> {
> DOMNode *thisNode = castToNode(this);
> int nContentLength = 0;
> { // Get t
-Original Message-
From: Andreï V. FOMITCHEV [mailto:[EMAIL PROTECTED]
Sent: den 27 mars 2003 15:56
To: [EMAIL PROTECTED]
Subject: Re: Re: Getting text off all subnodes
a beginning:
String * XML::getTextContent(DOMNode * node)
{
String * res = new String("");
DOMNodeList
re.
>
> Regards
>
> Erik Rydgren
> Mandarinen systems AB
> Sweden
>
>
> -Original Message-----
> From: Andreï V. FOMITCHEV [mailto:[EMAIL PROTECTED]
> Sent: den 27 mars 2003 15:56
> To: [EMAIL PROTECTED]
> Subject: Re: Re: Getting text off all subnodes
&g
e-
From: Andreï V. FOMITCHEV [mailto:[EMAIL PROTECTED]
Sent: den 27 mars 2003 15:56
To: [EMAIL PROTECTED]
Subject: Re: Re: Getting text off all subnodes
a beginning:
String * XML::getTextContent(DOMNode * node)
{
String * res = new String("");
DOMNodeList * laListe = node->ge
a beginning:
String * XML::getTextContent(DOMNode * node)
{
String * res = new String("");
DOMNodeList * laListe = node->getChildNodes();
DOMNode * noeud_courant;
for(XMLSize_t i = 0; i < laListe->getLength(); i++)
{
noeud_courant = laListe->item(i);
// NodeType
switch(no
mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 27, 2003 9:40 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Getting text off all subnodes
>
>
> Hi,
> getTextContent does what you want but is unimplemented. If you
> decide to implement it then we will gladly accept your code :
Hi,
getTextContent does what you want but is unimplemented. If you
decide to implement it then we will gladly accept your code :)
Gareth
On Thu, 27 Mar 2003, Magnus Strand wrote:
> Hi,
>
> Is there a method to return all text merged from all text subnodes from
> a certain nod in a D
Hi,
Is there a method to return all text merged from all text subnodes from
a certain nod in a DOM tree?
I mean if i have this as part of an xml:
It is sunnyweather today
I have a DOMNode* to the header element and would like to return all the
text:
"It is sunny weather today"
Regards,
Magnus S