Woodstox via SimpleXML attribute limits - how to set them?
问题 I've been trying to get SimpleXML to read a huge XML and run into attribute size limit. javax.xml.stream.XMLStreamException: Maximum attribute size limit (524288) exceeded at com.ctc.wstx.sr.StreamScanner.constructLimitViolation(StreamScanner.java:2470) I've tried using a system property but it doesn't seem to pick it up. -Djavax.xml.stream.XMLInputFactory=com.ctc.wstx.stax.WstxInputFactory -Dcom.ctc.wstx.maxAttributeSize=10000000 How can I force Woodstox to use a new limit? 回答1: I found a