Hi,
I have an xml file which structures that are not predicted.
For example:
 
1 file can be:
<trees>
             <p>testing</p>
</trees>
another file can be:
<trees>
             <p>testing<i>123</i>i am here<i>hello</i></p>
</trees>
 
i can't predict when there would be <i> inside the <p> tags as well as the position of <i> tags in the <p> tags.
 
if i use gettext() it only give me the text is <p>
 
how can i retrieve the whole text in the <p> tag so that i can ignore all the subelements like <i> or <b> inside <p> tags?Can anyone help me thanks very much!
Appreciate all the help provided! :)
 

Yahoo! Mobile
- Download the latest ringtones, games, and more!

Reply via email to