SourceForge has been redesigned. Learn more.

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( 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?


Log in to post a comment.