Xml-file too big for logstash?

so if I have
target => "[theXML]"
in the xml filter, then it should be:
script_params => {field => "[theXML][Event]" target => "[theXML]"}
in the ruby part?
I tried that as well, the output still looks the same.