I have a custom document DocumentFactory derived from DocumentFactory that isn't calling createElement() for some elements in the document. I override all three createElement methods.
For example, given the following XML snippet,
createElement(...) is called for map, but not mapImage. driveSteps, but not driveStep mapMan and manStrongTxt, but not mapImage.
I would think createElement would be called for each element in any given document. Is this not the case, or am I misunderstanding how dom4j uses document factories?
Thanks!
-Jerome O'Neil
...
<map width="425" height="250">
<mapImage><![CDATA[http://preview.vicinity.com/]]></mapImage>
</map>
<driveSteps count="1" driveTimeHours="0"
driveTimeMins="1" driveTimeSecs="0"
driveDist="0.17" driveUnits="MI"
>
<driveStep manNumber="1" manTimeHours="0"
manTimeMins="0" manTimeSecs="24"
manSumTimeHours="0" manSumTimeMins="0"
manSumTimeSecs="24" manDist="0.17"
manSumDist="0.17"
>
<manStrongTxt>
<![CDATA[Begin on <b>1st Ave S</b> and go 900 feet]]>
</manStrongTxt>
<mapMan manWidth="200" manHeight="100">
<mapImage><![CDATA[http://preview.vicinity.com/]]></mapImage>
</mapMan>
</driveStep>
</driveSteps>