https://bugs.documentfoundation.org/show_bug.cgi?id=104989

            Bug ID: 104989
           Summary: Problem with FILTERXML-Function in Basic
                    (IllegalArgumentException)
           Product: LibreOffice
           Version: 5.2.4.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: [email protected]
          Reporter: [email protected]

Description:
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
(http://lodahl.blogspot.de/2013/12/libreoffice-now-has-built-in-xml-parser.html)
does not work for me. Here's the code snippet:
Dim oFunctionAccess
http://www.lipsum.com/feed/xml?amount=2&what=paras&start=Yes";
oFunctionAccess = GetProcessServiceManager().createInstance(
"com.sun.star.sheet.FunctionAccess" )   
data = oFunctionAccess.callFunction("WEBSERVICE",array("))
Lipsum = oFunctionAccess.callFunction("FILTERXML", array(data, "/feed/lipsum"
))
Using the FILTERXML-function in the spreadsheet returns the correct value. 

Steps to Reproduce:
Run macro (see above)


Actual Results:  
IllegalArgumentException

Expected Results:
Cras ultrices malesuada tellus id bibendum......


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101
Firefox/50.0

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to