throw new IllegalStateException
("Segment must be set before calling this function.");
XMLPrinter printer = new XMLPrinter();
printer.writeXMLHeader();
printer.writeElement("D", "DAV:", "unbind", XMLPrinter.OPENING);
printer.writeElement("D", "segment", XMLPrinter.OPENING);
printer.writeText(segment);
printer.writeElement("D", "segment", XMLPrinter.CLOSING);
printer.writeElement("D", "unbind", XMLPrinter.CLOSING);