define XPATH for self closing xml 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 am using nokogiri  XPATH in logstash

In xml file, there is self-closing xml tag, which return null value.
How can i replace this null value with some string like 'blank' by using xpath operator

or is there any better way to define the xpath for self-closing xml tags

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