Anton Todorov
172548b4cd
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-03 17:42:33 +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-03 17:42:33 +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-06-29 19:48:21 +02:00
2017-06-30 18:57:41 +02:00
2017-06-30 14:57:04 +02:00
2017-05-25 16:07:35 +02:00
2017-06-30 17:02:59 +02:00
2017-06-30 16:08:11 +02:00
2017-06-30 18:57:41 +02:00
2017-05-25 16:07:35 +02:00
2017-06-21 03:22:56 +02:00
2017-06-30 11:48:23 +02:00
2017-06-30 18:20:00 +02:00
2017-05-25 16:07:35 +02:00
2017-06-27 15:36:00 +02:00
2017-06-29 15:29:39 +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-06-30 18:20:00 +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