« Previous | Next » 

Revision 172548b4

ID172548b4cd24411c759316728346191bb3d94d68
Parent cb0b3fc0
Child 37740d4c

Added by Anton Todorov over 3 years ago

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
```

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences