I am trying to create a custom serializer for apache cocoon. the objective of the serializer is to encode the xml data which will be used for flash devices. so i need to take whole xml data in to a string and encode the string and return the output for the user. i have looked at the code for xmlserializer but i have not been able to create my own  serializer yet.