/// <summary> /// Reads the manifest(the entry point for the 3Dxml parsing) and datamines where to start. /// </summary> /// <param name="archive">The unziped file archive of the 3dxml model</param> /// <returns></returns> public static XDocument ReadManifest(IThreeDXMLArchive archiv) { var manifest = archiv.GetManifest(); //check if the manifest contains the asset information, if the root element is not the manifest then load and return it. var rootElement = manifest.Root.Element("Root"); if (rootElement != null && !rootElement.IsEmpty) { manifest = archiv.GetNextDocument(CleanUpFileName(rootElement.Value)); } return(manifest); }