517 xmlNodeAddContent(repoNode, BAD_CAST "\n"); |
517 xmlNodeAddContent(repoNode, BAD_CAST "\n"); |
518 } |
518 } |
519 } |
519 } |
520 xmlNodeAddContent(repoNode, BAD_CAST "\t"); |
520 xmlNodeAddContent(repoNode, BAD_CAST "\t"); |
521 |
521 |
522 xmlNodeAddContent(root, "\n\t"); |
522 xmlNodeAddContent(root, BAD_CAST "\n\t"); |
523 xmlAddChild(root, repoNode); |
523 xmlAddChild(root, repoNode); |
524 xmlNodeAddContent(root, BAD_CAST "\n"); |
524 xmlNodeAddContent(root, BAD_CAST "\n"); |
525 |
525 |
526 int ret = 0; |
526 int ret = 0; |
527 if(xmlSaveFormatFileEnc(file, doc, "UTF-8", 1) == -1) { |
527 if(xmlSaveFormatFileEnc(file, doc, "UTF-8", 1) == -1) { |