XMLDoc size exceeds max size - when updating

  • tomasetti

    tomasetti - 2010-07-25

    With version 2.8, if I use the XMLModifier to change the text value of an XML element to something equal to or shorter than the original value, it throws "XMLDoc size exceeds maximum size".  Looks like this logic may not be behaving properly:

    if (len+os>=XMLDoc.length)
    throw new IOException("XMLDoc size exceeds maximum size");

    Is this a known bug?

  • tomasetti

    tomasetti - 2010-07-25

    The logic referred to is found at:   XMLByteOutputStream  public void write(byte ba, int os, int len) throws IOException{ …}
    I had hit this before when using the com.ximpleware.XMLByteOutputStream directly, but simply substituted another java OutputStream - now the call is from com.ximpleware.XMLModifier.output(XMLModifier.java:1565) and I cannot avoid it.

    Any fixes planned or existing in 2.9?

  • jimmy zhang

    jimmy zhang - 2010-08-11

    sorry for the late reply, this bu may have been fixed in 2.9… can you download and give a try?


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks