Novell Identity Manager Engine and Encoding

  • 7001229
  • 27-Aug-2008
  • 26-Apr-2012


Novell Identity Manager 3.5.1
Novell Identity Manager Engine


Is there a way to set the driver engine to use utf8 encoding for event messages so it shows the following:

<Xxml version="1.0" encoding="UTF-8"?>

instead of

<Xxml version="1.0"?>


 The XML declaration is only part of the serialized form of XML, not the DOM or the SAX form.
 The documents that the engine hands to the driver are always initially in the DOM form or the SAX form and require serialization to get it into the serialized form.  Unless the driver needs to write the document to a file or marshal it across a network connection or process boundaries there should be no reason for serializing the document in the first place.  The correct start of an XML declaration is <Xxml rather than <Xxml.  You can control how the document is serialized by getting the DOM form using XmlDocument.getDocument() and using com.novell.xml.dom.DOMWriter instead of using XmlDocument.getDocumentString()


 <Xxml version="1.0" ?>, <Xxml version="1.0" encoding="UTF-8"?>, and omitting the declaration altogether are semantically equivalent and any comforming XML parser should handle them fine.