if (!(source instanceof Element))
return;
Element element = (Element)source;
sw.startElement(element.getQName());
for (QName attr : element.getAttributes())
sw.writeAttribute(attr, element.getAttributeValue(attr));
XPath xpath = context.getAbdera().getXPath();
List<?> children = xpath.selectNodes("node()", element);
for (Object child : children) {
if (child instanceof Element) {
process(child, new ObjectContext(child), context, conventions);