XmlNamespace namespace = new XmlNamespace(
HtmlComponentExtensionsRegistryFactory.NAMESPACE,
componentKey.getNamespacePrefix(),
HtmlComponentExtensionsRegistryFactory.XSD_LOCATION);
writer.startElement("html", namespace);
writer.addAttribute(HtmlComponent.PROPERTY_SCALE_TYPE, htmlComponent.getScaleType());
writer.addAttribute(HtmlComponent.PROPERTY_HORIZONTAL_ALIGN, htmlComponent.getHorizontalAlign());
writer.addAttribute(HtmlComponent.PROPERTY_VERTICAL_ALIGN, htmlComponent.getVerticalAlign());
writer.writeExpression(HtmlComponent.PROPERTY_HTMLCONTENT_EXPRESSION, htmlComponent.getHtmlContentExpression(), false);