Formatted everything; completed upload capabilities

This commit is contained in:
schnulller
2022-06-04 02:42:01 +02:00
parent 743c88a4e5
commit 37b794ea05
61 changed files with 677 additions and 558 deletions

View File

@@ -8,7 +8,7 @@ public interface IXMLRoot {
// Name of the file prefix
public abstract string Prefix { get; }
// XPaths to determine if container is present
public abstract string[] XPathContainer { get; }
@@ -25,13 +25,14 @@ public interface IXMLRoot {
var elements = root.XPathSelectElements(p);
if (elements != null && elements.Any()) {
if (ret == null) ret = new List<XElement>();
ret.AddRange(elements);
foreach (var e in elements)
if (!ret.Contains(e)) ret.Add(e);
}
}
return ret;
}
// Generate certain metadat fields to display about this root
// Generate certain metadata fields to display about this root
public abstract List<(string, string?)>? GenerateFields(XMLRootDocument document);
// Generate an identification string of which the hash will be the filename.