private void LoadDocumentAsRawXml(XmlDocument document) { MetadataEntities = null; MetadataEntityCollection entities = new MetadataEntityCollection(); IMetadataEntity entity = MetadataEntityFactory.LoadEntity(document); entities.Add(entity); MetadataEntities = entities; _loadedAsRawXml = true; }
private void LoadEntitiesFromNode(XmlNode rootNode) { MetadataEntities = null; MetadataEntityCollection entities = new MetadataEntityCollection(); foreach (XmlNode node in rootNode.ChildNodes) { IMetadataEntity entity = MetadataEntityFactory.LoadEntity(node); entities.Add(entity); } MetadataEntities = entities; _loadedAsRawXml = false; }