stream.writeNamespace("", NS);
// first do the current page
write(page, stream, resourceResolver);
for (Iterator<Page> children = page.listChildren(new PageFilter(), true); children.hasNext();) {
write(children.next(), stream, resourceResolver);
}
stream.writeEndElement();