Home Forums Programming XML XQuery: Deleting Empty Nodes From XML Document RE: XQuery: Deleting Empty Nodes From XML Document

  • 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())]')