I want to get the content of all children node in a one varable. For example :
<p><distinct type="twitter-retweet"><ident>RT</ident> <addressingTerm><addressMarker>@</addressMarker><addressee type="twitter-account" ref="https://twitter.com/LePG 35022597" >LePG</addressee></addressingTerm>:</distinct> A 07h50, <addressingTerm><addressMarker>@</addressMarker><addressee type="twitter-account" ref="#cmr-politweets-p80820758">JLMelenchon</addressee></addressingTerm> est l'invité des #4vérités sur <distinct type="twitter-hashtag"><ident>#</ident><rs ref="https://twitter.com/search?q=%23France2&src=hash" >France2</rs></distinct>. Nous live-tweeterons. #Chômage <distinct type="twitter-hashtag"><ident>#</ident><rs ref="https://twitter.com/search?q=%23Municipales2014&src=hash" >Municipales2014</rs></distinct></p> I want to have in output this sentence : "RT @LePG A 07h50, @JLMelenchon est l'invité des #4vérités sur #France2. Nous live-tweeterons. #Chomage #Municipale2014" The problem is when i use asXML(), i have also the nodes in the variable.
Thanks
No comments:
Post a Comment