"calling this function.");
XMLPrinter printer = new XMLPrinter();
printer.writeXMLHeader();
printer.writeElement("D", "DAV:", "bind", XMLPrinter.OPENING);
printer.writeElement("D", "segment", XMLPrinter.OPENING);
printer.writeText(segment);
printer.writeElement("D", "segment", XMLPrinter.CLOSING);
printer.writeElement("D", "href", XMLPrinter.OPENING);
printer.writeText(href);