Discussion:
[XOM-interest] Max Attribute Value Lengths
Andrew Wisner
2012-05-17 22:19:59 UTC
Permalink
I'm developing a web application with java server pages which records
session information in an XML file. (It's basically just an XML log
file.) In the file, I want to include long (>500 characters) attribute
values. XOM is allowing me to write the long values to the file; I can
open the file with a text editor and see that they're there. However,
when I try to read the values with XOM and convert them to a string, I
get something like this:

/command=/getImage&scaleSize=85#comman...

Is there a maximum attribute value length that XOM can read? Is there
any way I can convert all of the attribute's value to a string without
any getting chopped off from the end?

Thanks in advance for any help with this subject!

--
Andrew Wisner
Electrical and Computer Engineering Department
The University of Alabama at Birmingham
Elliotte Rusty Harold
2012-05-19 13:29:53 UTC
Permalink
XOM is not chopping anything. If you try to reproduce this with a
self-contained test case, you will likely uncover the real source of
the problem.

There is no maximum length to an attribute in XML, and XOM is limited
only by the maximum size of a Java string and available memory.
--
Elliotte Rusty Harold
elharo at ibiblio.org
Continue reading on narkive:
Loading...