mboaler |
Newbie |
|
|
|
|
None Specified |
|
Tuesday, August 9, 2016 |
Wednesday, August 10, 2016 2:35:54 AM |
1 [0.01% of all post / 0.00 posts per day] |
|
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>
|
|