예제 #1
0
		private void LoadDocumentAsRawXml(XmlDocument document) {
			MetadataEntities = null;
			
			MetadataEntityCollection entities = new MetadataEntityCollection();
			IMetadataEntity entity = MetadataEntityFactory.LoadEntity(document);
			entities.Add(entity);
			
			MetadataEntities = entities;
			_loadedAsRawXml = true;
		}
예제 #2
0
		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;
		}