Hi Axis2 Developers,

I was looking into the way adding a child in OMElementImpl was
implemented. It seems like the received OMNodeImpl object is added as
the first child and pointers are adjusted accordingly. But there seems
to be no check if there already exists a non empty OMText node already
present in this OMElement, in which case we should not allow adding a
child node (non TEXT_NODE type) as that will create ill-formed xml
message.

something like

<bodyElement>
   Hello
   <unacceptableChild> Another Hello </unacceptableChild>
</bodyElement>

is possibly accepted in our case, isn't it?

Or somewhere down the line, is this kind of check for well formedness made.
-- 
-- Jaya

Reply via email to