Refactor the XML converting attribute and text getters to use LLVM API.
While at it, remove some redundant error and missing XML support
handling, as the called base functions do that anyway. Add tests
for these methods.
Note that this patch changes the getter behavior to be IMHO more
correct. In particular:
- negative and overflowing integers are now reported as failures to convert, rather than being wrapped over or capped
- digits followed by text are now reported as failures to convert to double, rather than their numeric part being converted
/me wonders if it would be too weird to rely on the fact that to_integer does not modify the result variable on failure.
It would definitely streamline this code: