Hi all,
this might be a dumb question but I'm wondering if something I'm seeing is
"normal".

I have noticed that the ContentHandler I'm using that when I'm parsing a
fairly large file that
the characters method gets fired multiple times for the data in an element.
Let me explain

I have an XML record that looks like.

<PersonRecord>
                <ForCompany>PRUD</ForCompany>
                <Operation>S</Operation>
                <XStudentId>carl</XStudentId>
                <FirstName>Carl</FirstName>
                <LastName>Christianson</LastName>
                <UserName>carl</UserName>
                <Password>carl</Password>
                <StudentStatus>Active</StudentStatus>
                <XRegionId>xcbn</XRegionId>
                <XField1>xField1</XField1>
                <XField2>xField2</XField2>
</PersonRecord>


to do a load test of my application I copied this simple record over and
over again (4000 times).

I have noticed that the public void characters(char[] ch, int start, int
end) method will occasionally get fired multiple times on some of those
elements.
i.e.  it will fire for the <StudentStatus> element and pass in "Activ" and
then fire again passing in "e".
The start and end of the element only (correctly) get fired once.

I upgraded to 1.4.3 and the behaviour is the same.  It will consistently do
it an records 751, 2480, 2800, 3830.
All the records are identical. The element that gets split up is consistent
but different for each of those. i.e. record 2480 will split up the
<ForCompany> element into "PR" and "UD".
I've coded around this but is this normal?  
thx
Carl

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to