Characters '<' and '&' in importXMLFromBuffer()

Hallo,

the method com.birdstep.bdbe.xml.BdXMLDB.importXMLFromBuffer() fails if the XML buffer contains the characters ‘<’ and ‘&’ in a text node. I think, this is a normal behaviour because in a text node these characters must be escaped by ‘<’ and ‘&’ for the XML parser.

Please tell me, if I am right or wrong concerning this method! If I am wrong (which I do not believe) this should be handled as a bug.

Regards,
Pascal Sch

Yes it is a normal behavior. Any XML parser must fail on this because it is not well-formed XML.

You should always use logic for escaping “<” → “<” , “>” → “>” and “&” → “&” .

Regards

Javier C