/** * Returns the Xml representation of this <code>EventDiscovery</code> as * being present in the POLL response body. * * @return Xml representation * @see org.apache.jackrabbit.webdav.xml.XmlSerializable#toXml(Document) * @param document */ public Element toXml(Document document) { Element ed = DomUtil.createElement(document, XML_EVENTDISCOVERY, NAMESPACE); Iterator it = getEventBundles(); while (it.hasNext()) { EventBundle bundle = (EventBundle)it.next(); ed.appendChild(bundle.toXml(document)); } return ed; } }