I’m facing an issue with the XML Reader node in KNIME. Previously, I was using a deprecated XML Reader node that accepted string variables for the URL. However, I recently switched to the new XML Reader node, which requires path variables instead. To accommodate this change, I have included an “String to Path” node to convert the string variable to a path variable.
Hi @Sukran , welcome to the KNIME community.
It’s difficult to diagnose from your screenshot. The only error message showing is that it has been given a folder rather than a file name, and of course we can’t see what you are actually passing, nor what you intended to pass as you haven’t given that information.
Can you confirm that the path you’ve supplied is for a file rather than a folder. From the error message it looks like it has been passed “/” rather than the value you expected. I wonder if you have inadvertently converted more than one string to a path in the String to Path node, and then used the wrong one in the XML Reader?
Alternatively if you intended to pass a folder, then the option box needs to be changed to “folder”
What happens if you temporarily configure the node by typing in the path you are trying to read, rather than using a variable?
Hi @takbb
Recently, I have had the same issue and I resolved it as you said, string to path node.
Many thanks!
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.