how to define XPATH for self-closing tags

20 views
Skip to first unread message

Ritesh Khapre

unread,
Sep 1, 2017, 9:54:29 AM9/1/17
to nokogiri-talk
Hi

I have a description field which is empty and in xml this a self-closing tag

I am not able to fetch either empty string or replace it with some string like "blank"

Please let me know, how can i define a operator to get the empty string or replace it with "blank

i am using this XPATH

xpath => [
        "/Envelope/Body/response/table/row/description/text()","description"  
]
Reply all
Reply to author
Forward
0 new messages