Jump to content

select node content but ignore certain children


Rob

Recommended Posts

I'm trying to gather a variable. I need a select statement that will reliably achieve the outputs below:
XML is
<study.name>Cold Agglutinin <intl type="spelling"><us>Titer</us><ca>Titre</ca></intl> </study.name>

Need output to be Cold Agglutinin Titer

Gets only what's in <us> descendant

OR

<study.name><intl type="spelling"><us>Color</us><ca>Colour</ca></intl> Perception Test</study.name>

Need output to be Color Perception Test

Gets only what's in <us> descendant

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...