IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Profile: mboaler
About
User Name: mboaler
Forum Rank: Newbie
Real Name:
Location
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Tuesday, August 9, 2016
Last Visit: Wednesday, August 10, 2016 2:35:54 AM
Number of Posts: 1
[0.01% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: template match to remove specific parents
Posted: Tuesday, August 9, 2016 6:59:14 PM
Hi, hoping someone is able to help me out. I'm trying to come up with a match template to remove any invoice that has both feetotal = 0 and costtotal =0 and remove the corresponding feesummary, feedetail and cost summary.

I was able create a template match to remove just the parent invoice when criteria is met but not sure how to remove the feesummary, feedetail and cost summary that belong to each invoice.

This is the XML format:

<root>
<invoice>
<feetotal>100.00</feetotal>
<costtotal>0.00</costtotal>
</invoice>
<invoice>
<feetotal>0.00</feetotal>
<costtotal>2.00</costtotal>
</invoice>
<invoice>
<feetotal>0.00</feetotal>
<costtotal>0.00</costtotal>
</invoice>
<feesummary>
<etc>1</etc>
</feesummary>
<feedetail>
<etc>1</etc>
</feedetail>
<costsummary>
<etc>1</etc>
</costsummary>
<feesummary>
<etc>2</etc>
</feesummary>
<feedetail>
<etc>2</etc>
</feedetail>
<costsummary>
<etc>2</etc>
</costsummary>
<feesummary>
<etc>3</etc>
</feesummary>
<feedetail>
<etc>3</etc>
</feedetail>
<costsummary>
<etc>3</etc>
</costsummary>
</root>

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.