XPath query difficulty...

I'm trying to construct an XPath and it is giving me trouble. I have
an XML that contains a "Routine". The routine contains "Steps". The
steps have different types. Some types of steps have more steps
contained within them (substeps). I want to get a list of all of the
steps in a routine, including any substeps...but excluding substeps
that occur in a particular type of step ("Subroutine").

Below is a simplified example XML. The query I envision would return
all of the steps in the routine, including substeps found in the
"Loop" step type and "Condition" step type...but NOT including any
steps that are anywhere within a "Subroutine" step.

Advertisements

> I'm trying to construct an XPath and it is giving me trouble. I have
> an XML that contains a "Routine". The routine contains "Steps". The
> steps have different types. Some types of steps have more steps
> contained within them (substeps). I want to get a list of all of the
> steps in a routine, including any substeps...but excluding substeps
> that occur in a particular type of step ("Subroutine").

Advertisements

On Sep 27, 12:55 am, oopsatwork <> wrote:
> I'm trying to construct an XPath and it is giving me trouble. I have
> an XML that contains a "Routine". The routine contains "Steps". The
> steps have different types. Some types of steps have more steps
> contained within them (substeps). I want to get a list of all of the
> steps in a routine, including any substeps...but excluding substeps
> that occur in a particular type of step ("Subroutine").

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!