@RonakShah Have we just been answering the same question, but asked from different angles
- https://stackoverflow.com/questions/59349487/is-there-a-faster-rewrite-to-deal-with-missing-xml-attributes
&
- https://stackoverflow.com/questions/59349700/is-there-a-way-to-handle-the-first-lapply-element-differently-or-prepend-it-to
- https://stackoverflow.com/questions/59349487/is-there-a-faster-rewrite-to-deal-with-missing-xml-attributes
&
- https://stackoverflow.com/questions/59349700/is-there-a-way-to-handle-the-first-lapply-element-differently-or-prepend-it-to