("Segment and Href must be set before " +
"calling this function.");
XMLPrinter printer = new XMLPrinter();
printer.writeXMLHeader();
printer.writeElement("D", "DAV:", "rebind", XMLPrinter.OPENING);
printer.writeElement("D", "segment", XMLPrinter.OPENING);
printer.writeText(segment);
printer.writeElement("D", "segment", XMLPrinter.CLOSING);
printer.writeElement("D", "href", XMLPrinter.OPENING);