« Previous | Next » 

Revision ef25a754

IDef25a75478be73c01a80bc387a50b557f2d287d3
Parent ae853eae
Child 89c5ae46

Added by Anton Todorov about 4 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