writer = xmlNewTextWriterFilename(DPL::ToUTF8String(filename).c_str(), 0); //compression set to 0
if (writer == NULL)
ThrowMsg(LibxmlUtils::Libxml2Error, "xmlNewTextWriterFilename failed");
+ state = xmlTextWriterSetIndent (writer, 1);
+ if (state < 0)
+ {
+ ThrowMsg(LibxmlUtils::Libxml2Error, "xmlTextWriterSetIndent failed");
+ }
+
state = xmlTextWriterStartDocument(writer, NULL, "utf-8", NULL);
if (state < 0)
{
// x-tizen-svc=http://tizen.org/appsvc/operation/pick|NULL|image;
FOREACH(it, appServiceList) {
ApplicationService appService;
- appService.addOperation(it->operation);
- appService.addOperation(it->scheme);
- appService.addOperation(it->mime);
+ if (!it->operation.empty()) {
+ appService.addOperation(it->operation);
+ }
+ if (!it->scheme.empty()) {
+ appService.addUri(it->scheme);
+ }
+ if (!it->mime.empty()) {
+ appService.addMime(it->mime);
+ }
uiApp.addApplicationService(appService);
}
}