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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -