 	 *
 	 */
 	
+	import flash.xml.XMLDocument;
+	import flash.xml.XMLNode;
+	
 	import org.jivesoftware.xiff.data.Extension;
 	import org.jivesoftware.xiff.data.ExtensionClassRegistry;
 	import org.jivesoftware.xiff.data.IExtension;
-	import flash.xml.XMLNode;
-	import flash.xml.XMLDocument;
+	import org.jivesoftware.xiff.data.ISerializable;
 	
 	/**
 	 * This class provides an extension for XHTML body text in messages.

	 * @toc-path Extensions/HTML
	 * @toc-sort 1/2
	 */
	public class XHTMLExtension extends Extension implements IExtension
	{
		// Static class variables to be overridden in subclasses;
		public static var NS:String = "http://www.w3.org/1999/xhtml";

		 */
		public function get body():String
		{
			var html:Array = [];
			for each(var child:XMLNode in getNode().childNodes) {
				html.unshift(child.toString());
			}
			return html.join();
		}
	
		public function set body(theBody:String):void
		{
			for each(var child:XMLNode in getNode().childNodes) {
				child.removeNode();
			}
			getNode().appendChild(new XMLDocument(theBody));
		}
