XDocument doc = XDocument.Load(filePath); XElement xliff = (XElement)doc.FirstNode; XNamespace ns = xliff.Name.Namespace; var testid = xliff.Descendants(ns + "trans-unit"); foreach (var item in testid) { var iD = Convert.ToInt16(item.FirstAttribute.Value) - 1; item.SetAttributeValue(ns + "status", units[iD].Status); item.SetAttributeValue(ns + "locked", units[iD].isLocked); } doc.Save(destination + "\\EXPORT.mqxliff");
ns
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)