public XDocument CreateAndLoad(string xmlFilePath) { filePath = xmlFilePath; WriteMetaDataDocument(); var document = XDocument.Load(filePath); document = new CompoundContentCreator().AddCompoundElementsToDocument(document); document.Save(filePath); return document; }
public XDocument CreateAndLoad(string xmlFilePath) { filePath = xmlFilePath; WriteMetaDataDocument(); var document = XDocument.Load(filePath); document = new CompoundContentCreator().AddCompoundElementsToDocument(document); document.Save(filePath); return(document); }