I am using xmllint to fetch some data from xml file, by using following command:
xmllint --xpath '//Module[TestCase/Test[@result="fail"]]/@name' test.xml
The same command worked for some time, but triggering it few time, I am getting an error as
XPath error : Memory allocation failed : growing nodeset hit limit
growing nodeset hit limit
^ XPath evaluation failure
Please note: The xmllint --xpath '//Module[TestCase/Test[@result="fail"]]/@name' test.xml
command is working fine when I using the test.xml whose size is 1MB, but when the use the same command with test.xml whose size is 390MB then I am facing the issue
I tried troubleshooting by trying to increase the xpath nodeset length XPATH_MAX_NODESET_LENGTH 90000000 and export XPATH_MAX_NODESET_LENGTH 90000000
but it dint helped me.