xml - I am trying to retrieve the text between Nodes but it is returning all child nodes too. -


<inspection> <certificate> retrieve text  <status>active</status> </certificate> </inspection> 

i using:

foreach (xmlnode node in nodes) {      array = node.selectsinglenode("certificate").innertext; } 

it returns:

retrieve text  <status>active</status> 

i need "retrieve text only"

i don't know language using xpath required want this:

//certificate/child::text() 

Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -