Thanks for your reply Phil. This looks like it should work for me. But, just to make sure I understand mySLD is a string that is equivalent to the xml of the sld. Cheers, Derek