oxy_xpath function and large XML files

<oXygen/> general issues.
Posts: 18
Joined: Mon Dec 09, 2013 7:47 pm

oxy_xpath function and large XML files

Post by fhorn » Wed Jan 29, 2014 1:37 pm


In a CSS file, I use the oxy_xpath function to interate over a another XML file. This file is stored on my computer and the file size is about 100 MB. If I try to edit a new XML file associated with this CSS file, I receive the following error message:

[CSS]:XPath failed: XPath failed due to: Failed to load document C:/example_file.xml

Im wondering whether there is a problem with the file size of example_file.xml because it works well if the file is smaller. Is it necessary to modify some options for larger files? The Oxygen version is 14.1. The amount of memory that Oxygen uses is already modified (now -Xmx2048m).


Posts: 801
Joined: Wed Nov 16, 2005 11:11 am

Re: oxy_xpath function and large XML files

Post by alex_jitianu » Wed Jan 29, 2014 3:40 pm


If you are willing to help us investigate the problem, you can enable logging in Oxygen. I will send you the instructions by email.

However, using such an expensive XPath query in the CSS does not result in a good user experience when editing the XML. While the query is executed the entire document will not respond to user input and this may take long for your document.

Depending on what you are trying to achieve, there may be alternative solutions. For example, if you are trying to populate an oxy_combobox with the values extracted by XPath, it's better to use our SchemaManagerFilter Java API. So, please tell us more about the your context so that we can suggest you other solutions.

Best regards,

Post Reply