On 07/02/2011 11:37, Merrilees, David wrote:

mySerializer.SetOutputProperty(Serializer.OMIT_XML_DECLARATION, "yes");

myProcessor.WriteXdmValue(myOutput, mySerializer);

You're right - there's a bug here. When WriteXdmValue is used, the output properties set in the Serializer are ignored. I'll raise a patch.

Michael Kay
Saxonica