1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00
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-19 14:36:18 +02:00
2017-06-27 15:54:47 +02:00
2017-05-25 16:07:35 +02:00
2017-05-25 16:07:35 +02:00
2017-05-25 16:07:35 +02:00
2017-05-25 16:07:35 +02:00
2017-05-25 16:07:35 +02:00
2017-05-25 16:07:35 +02:00
2017-05-25 16:07:35 +02:00
2017-05-25 16:07:35 +02:00
2017-05-25 16:07:35 +02:00
2017-05-25 16:07:35 +02:00
2017-05-25 16:07:35 +02:00
2017-05-25 16:07:35 +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-05-25 16:07:35 +02:00
2017-05-25 16:07:35 +02:00
2017-05-25 16:07:35 +02:00
2017-05-25 16:07:35 +02:00