Getting values with template
-
I'm having next xml file and I want to make an xsl template to select the name of node that containts some values for child nodes. xml:
AA
a
b
cBB
a
x
cBB
x
cI want to get only the nodes that have at fields a and not b (a and !b), so every fields node can have a variable number of childs. In this example it will be valid only n2
-
I'm having next xml file and I want to make an xsl template to select the name of node that containts some values for child nodes. xml:
AA
a
b
cBB
a
x
cBB
x
cI want to get only the nodes that have at fields a and not b (a and !b), so every fields node can have a variable number of childs. In this example it will be valid only n2
The XML you posted is mal-formed, but after cleaning it up a little I found that
"*/*[fields/*='a' and not(fields/*='b')]"
seems to work.