Anton Todorov
ef25a75478
xpath.rb fix crash when querying empty-element tag
...
by returning empty string.
Handling both `<test/>` and `<test></test>`
test pattern:
```
echo -e "<A>\n<B>b</B>\n<C/>\n<D></D><E>e</E></A>\n"| /var/lib/one/remotes/datastore/xpath.rb /A/B /A/C /A/D /A/E | while IFS= read -r -d '' e; do echo "'$e'"; done
```
2017-07-04 18:34:22 +02:00
..
2017-05-25 16:07:35 +02:00
2017-05-25 16:07:35 +02:00
2017-06-08 12:35:53 +02:00
2017-06-26 19:55:01 +02:00
2017-06-19 14:36:18 +02:00
2017-06-27 15:54:47 +02:00
2017-06-21 03:22:56 +02:00
2017-05-25 16:07:35 +02:00
2017-06-21 03:22:56 +02:00
2017-07-04 18:34:22 +02:00
2017-06-09 15:04:19 +02:00
2017-05-25 16:07:35 +02:00
2017-05-25 16:07:35 +02:00
2017-06-21 03:22:56 +02:00
2017-05-25 16:07:35 +02:00
2017-05-25 16:07:35 +02:00
2017-06-23 00:13:49 +02:00
2017-05-25 16:07:35 +02:00
2017-06-28 12:38:16 +02:00
2017-06-21 03:22:56 +02:00
2017-05-25 16:07:35 +02:00
2017-05-25 16:07:35 +02:00
2017-06-09 15:04:19 +02:00
2017-05-25 16:07:35 +02:00
2017-06-27 19:24:15 +02:00
2017-06-21 03:22:56 +02:00
2017-05-25 16:07:35 +02:00
2017-07-04 18:34:22 +02:00
2017-07-04 18:34:22 +02:00
2017-07-04 18:34:22 +02:00
2017-05-25 16:07:35 +02:00
2017-07-04 18:34:22 +02:00
2017-07-04 18:34:22 +02:00
2017-07-04 18:34:22 +02:00
2017-05-25 16:07:35 +02:00
2017-06-21 03:22:56 +02:00
2017-07-04 18:34:22 +02:00
2017-07-04 18:34:22 +02:00
2017-05-25 16:07:35 +02:00
2017-06-27 15:36:00 +02:00
2017-07-04 18:34:22 +02:00
2017-06-21 03:22:56 +02:00
2017-06-21 03:22:56 +02:00
2017-06-21 03:22:56 +02:00
2017-05-25 16:07:35 +02:00
2017-05-25 16:07:35 +02:00
2017-06-22 23:37:08 +02:00
2017-07-04 18:34:22 +02:00
2017-06-21 03:22:56 +02:00
2017-06-11 19:38:32 +02:00
2017-05-25 16:07:35 +02:00
2017-05-25 16:07:35 +02:00
2017-06-21 03:22:56 +02:00