Click here to Skip to main content
15,895,142 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: text nodes Pin
llp00na2-Mar-06 4:53
llp00na2-Mar-06 4:53 
GeneralRe: text nodes Pin
llp00na2-Mar-06 5:27
llp00na2-Mar-06 5:27 
GeneralRe: text nodes Pin
Stephen Hewitt2-Mar-06 11:26
Stephen Hewitt2-Mar-06 11:26 
GeneralRe: text nodes Pin
llp00na2-Mar-06 23:30
llp00na2-Mar-06 23:30 
GeneralRe: text nodes Pin
Stephen Hewitt3-Mar-06 0:42
Stephen Hewitt3-Mar-06 0:42 
GeneralRe: text nodes Pin
llp00na3-Mar-06 4:09
llp00na3-Mar-06 4:09 
GeneralRe: text nodes Pin
Stephen Hewitt3-Mar-06 19:18
Stephen Hewitt3-Mar-06 19:18 
GeneralRe: text nodes Pin
llp00na4-Mar-06 5:41
llp00na4-Mar-06 5:41 
Thank you steve,

quoted:
"If I added the modified it as follows:
<p><b>new bit</b> Some text.</p> <<----- STEVE: We don't return this?"

In this case:

<P>
<b> new bit </b>
Some text . ------------->> should return this
</p>

The text I want to return is the one which does not have an explicit tag
in your example:
<P>
<b> new bit </b> ----> represents the first child of the element P
Some text . ----> represents the second child of the element P
</p>

As you can see, child one and child two are siblings right? and they are both children of element/node <P>.
Now, the first child "new bit" has got an explicit tag (being <b>), however the second child "Some text." does not have an explicit tag.

As a general assumption, let us consider X as an element/node of a DOM tree. If X has got MORE than one child, then return all textual children with no explicit tags.

I hope I made the problem understandable and I am sorry for my inaccurate explanations.




llp00na

-- modified at 11:41 Saturday 4th March, 2006
GeneralRe: text nodes Pin
Stephen Hewitt4-Mar-06 15:00
Stephen Hewitt4-Mar-06 15:00 
GeneralRe: text nodes Pin
llp00na5-Mar-06 1:38
llp00na5-Mar-06 1:38 
GeneralRe: text nodes Pin
Stephen Hewitt4-Mar-06 15:56
Stephen Hewitt4-Mar-06 15:56 
GeneralRe: text nodes Pin
llp00na5-Mar-06 6:28
llp00na5-Mar-06 6:28 
Questioncgi mailer ---- giving troubles Pin
deepak11-Mar-06 12:12
deepak11-Mar-06 12:12 
AnswerRe: cgi mailer ---- giving troubles Pin
Vasudevan Deepak Kumar2-Mar-06 19:31
Vasudevan Deepak Kumar2-Mar-06 19:31 
GeneralRe: cgi mailer ---- giving troubles Pin
deepak15-Mar-06 9:06
deepak15-Mar-06 9:06 
QuestionGetting a list of links in an html file Pin
imadoki1-Mar-06 9:09
imadoki1-Mar-06 9:09 
AnswerRe: Getting a list of links in an html file Pin
Vasudevan Deepak Kumar1-Mar-06 22:57
Vasudevan Deepak Kumar1-Mar-06 22:57 
QuestionNeed javascript code!!Urgent Pin
Sushant_Mathur1-Mar-06 4:16
Sushant_Mathur1-Mar-06 4:16 
QuestionRe: Need javascript code!!Urgent Pin
nicko1-Mar-06 14:35
nicko1-Mar-06 14:35 
AnswerRe: Need javascript code!!Urgent Pin
Vasudevan Deepak Kumar1-Mar-06 22:56
Vasudevan Deepak Kumar1-Mar-06 22:56 
QuestionHow to implement transactions in Biz logic layer in 3 tier arch. Pin
Ravi_Vaswani28-Feb-06 22:30
Ravi_Vaswani28-Feb-06 22:30 
AnswerRe: How to implement transactions in Biz logic layer in 3 tier arch. Pin
darkelv1-Mar-06 3:49
darkelv1-Mar-06 3:49 
AnswerRe: How to implement transactions in Biz logic layer in 3 tier arch. Pin
JP_Rocks9-May-11 0:28
JP_Rocks9-May-11 0:28 
Questionsort image list Pin
Marc Soleda28-Feb-06 20:05
Marc Soleda28-Feb-06 20:05 
AnswerRe: sort image list Pin
Vasudevan Deepak Kumar2-Mar-06 19:57
Vasudevan Deepak Kumar2-Mar-06 19:57 

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.