Home Forums Programming XML XQuery: Deleting Empty Nodes From XML Document RE: XQuery: Deleting Empty Nodes From XML Document
Arthur Olcot
SSCertifiable
Points: 6569
More actions
February 28, 2014 at 10:02 am
#1693172
Hi.. I would use something like the following. This is checking to see if the text node is empty or not in the predicate.:
set @xdata.modify('delete //step[empty(text())]')