writer.writeAttribute(XML_NAME, node.getName());
writer.writeAttribute(XML_HREF, rootHref + TextUtil.escape(node.getPath(), '%', true));
// add properties
for (PropertyIterator pi = node.getProperties(); pi.hasNext();)
{
Property curProperty = pi.nextProperty();
writer.writeStartElement(XML_PROPERTY);
writer.writeAttribute(XML_NAME, curProperty.getName());
String propertyHref = rootHref + curProperty.getPath();
writer.writeAttribute(XML_HREF, propertyHref);
writer.writeEndElement();