I found one strange difference between SAXWriter and XMLWriter.
In XMLWriter when ever a text content to be written the text is checked for null condition.
XMLWriter LineNumber 777
protected void writeString(String text) throws IOException {
if ( text != null && text.length() > 0 ) {
Where in SAXWriter if the text node doesn't have content which is null, there is no null check for this. Which is leading to NullPointerException whenever the text node has null content.
SAXWriter LineNumber 411.
else if ( object instanceof CharacterData ) {
if ( object instanceof Text ) {
Text text = (Text) object;
write( text.getText() );
}
Is in't the text.getText() should be checked for null?
Any ideas???
Kesav Kumar Kolla
Voquette Inc
650 356 3740(W)
510 889 6840(R)
Voquette....Delivering Sound Information
