Hello,
Given an XML file of :
Code:
Level_1
Level_2
Level_3
Is there any XPath can I use to return ONLY the Level_2 element (and attributes) with NO Level_3 elements? I'm thinking not, but thought I would ask just in case.
As using
Code:
/Level_1/Level_2
/Level_1/Level_2[@*]
/Level_1/child::Level_2
all return the child elements.
In case you are wondering why I want this there can be many 1000s of Level_3 elements and for the purpose of this transformation are redundant, so didn't really want them returned.
--
William