Mixed Content is allowed in XML. See http://www.w3.org/TR/REC-xml/#sec-mixed-content and here http://www.w3schools.com/schema/schema_complex_mixed.asp
-- Chinthaka > > 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
