Problem with FILTERXML-Function in Basic (IllegalArgumentException)

I would like to use the FILTERXML-Function in a Basic-macro, but I always get an IllegalArgumentException. Even using the example from Leif Lodahl’s blog ( does not work for me. Here’s the code snippet:

*Dim oFunctionAccess 
oFunctionAccess = GetProcessServiceManager().createInstance( "" )   
data = oFunctionAccess.callFunction("WEBSERVICE",array(""))
Lipsum = oFunctionAccess.callFunction("FILTERXML", array(data, "/feed/lipsum" ))*

Curious: in the spreadsheet the FILTERXML-function returns the correct values.

I’m using LO V.

Any ideas or own experiences appreciated!


I can confirm, that there is a problem with FILTERXML, if called via FunctionAccess. Please write a bug report for it.

@Regina: Thank for confirming the problem. Filed a bugreport (see Hope it will be fixed soon as it is an interesting function.

As a note, this function had been working in previous versions as tested on Mint 18. The last version I found it working in was and NOT working in (had no versions in between). I have added this comment to the bug report mentioned.

When does this bug finally be fixed?
I use this function in my macros and since I upgraded to 5.3 I got the mess, that it is not working anymore?! :frowning:
Meanwhile there was an update to in my distro but /wo remedy.
Even in the Bugzilla – Bug Report 104989 there is still no assignee till today to fix it. Status remains “new”.

Hopefully there will be soon a fix for that.