Hello,

we are not able to execute xml starlet commands in our project.
We have got the following error:
.:/tmp>/usr/bin/xml sel -T -t -v '///MetaData[1]/MessageGroup[1]' datafileexample.xml
datafileexample.xml:52: error: xmlSAX2Characters: huge text node: out of memory
*

According to my research the problem seems to be in the library libxml2.
Is there any possibility for xml starlet to cope with this problem?

xmllint has a command line parameter that allows it to overcome the limit of 10 MG for XML files:
Usage : xmllint [options] XMLfiles ...
Parse the XML files and output the result of the parsing
...
--huge : remove any internal arbitrary parser limits
...
I have tried with xmllint and it works.

Does xmlstarlet has something similar to xmllint?

Thank you
With kind regards,
Constantin Mitricuna-Poenaru