RE: Re: Getting text off all subnodes

2003-03-28 Thread Gareth Reakes
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

RE: Re: Getting text off all subnodes

2003-03-28 Thread Magnus Strand
-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: Re: Getting text off all subnodes

2003-03-28 Thread Gareth Reakes
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

RE: Re: Getting text off all subnodes

2003-03-27 Thread Erik Rydgren
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

Re: Re: Getting text off all subnodes

2003-03-27 Thread "Andreï V. FOMITCHEV"
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

RE: Getting text off all subnodes

2003-03-27 Thread vinayak
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 :

Re: Getting text off all subnodes

2003-03-27 Thread Gareth Reakes
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

Getting text off all subnodes

2003-03-27 Thread Magnus Strand
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