public XmlWriter WriteLinkList(string exportPath, ISO11783_LinkList linkList) { BaseFolder = exportPath; CreateFolderStructure(); XmlStream = new MemoryStream(); RootWriter = CreateWriter(XmlStream); RootWriter.WriteStartDocument(); linkList.WriteXML(RootWriter); RootWriter.WriteEndDocument(); RootWriter.Flush(); var xml = Encoding.UTF8.GetString(XmlStream.ToArray()); File.WriteAllText(Path.Combine(BaseFolder, "LINKLIST.XML"), xml); return(RootWriter); }
public UniqueIdMapper(ISO11783_LinkList linkList) { LinkList = linkList; }