Node childNode = ni.nextNode();
writer.writeStartElement(XML_NODE);
writer.writeAttribute(XML_NAME, childNode.getName());
String childNodeHref = rootHref + TextUtil.escape(childNode.getPath(), '%', true);
writer.writeAttribute(XML_HREF, childNodeHref);
writer.writeEndElement();
}
writer.writeEndElement();
writer.writeEndDocument();
}
catch (RepositoryException e)