本文整理汇总了C#中SobekCM_Item.Add_Unanalyzed_DMDSEC方法的典型用法代码示例。如果您正苦于以下问题:C# SobekCM_Item.Add_Unanalyzed_DMDSEC方法的具体用法?C# SobekCM_Item.Add_Unanalyzed_DMDSEC怎么用?C# SobekCM_Item.Add_Unanalyzed_DMDSEC使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SobekCM_Item
的用法示例。
在下文中一共展示了SobekCM_Item.Add_Unanalyzed_DMDSEC方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Read_Metadata
//.........这里部分代码省略.........
XmlReader reader = XmlReader.Create(new StringReader(metsSection.Inner_XML));
string mdtype = String.Empty;
string othermdtype = String.Empty;
while (reader.Read())
{
if (reader.NodeType == XmlNodeType.Element)
{
if (reader.Name.ToLower().Replace("mets:", "") == "mdwrap")
{
if (reader.MoveToAttribute("MDTYPE"))
mdtype = reader.Value;
if (reader.MoveToAttribute("OTHERMDTYPE"))
othermdtype = reader.Value;
// NOt crazy about this part, but sometimes people do not use the OTHERMDTYPE
// tag correctly, and just use the LABEL to differentiate the types
if ((mdtype == "OTHER") && (othermdtype.Length == 0) && (reader.MoveToAttribute("LABEL")))
othermdtype = reader.Value;
// Now, determine if this was a division-level read, or a package-wide
if (division_dmdids.ContainsKey(thisDmdSecId))
{
// Division level dmdSec
// Get the division
abstract_TreeNode node = division_dmdids[thisDmdSecId];
// Get an appropriate reader from the metadata configuration
iDivision_dmdSec_ReaderWriter rw = ResourceObjectSettings.MetadataConfig.Get_Division_DmdSec_ReaderWriter(mdtype, othermdtype);
// Is this dmdSec analyzable? (i.e., did we find an appropriate reader/writer?)
if (rw == null)
{
node.Add_Unanalyzed_DMDSEC(metsSection);
}
else
{
rw.Read_dmdSec(reader, node, options);
}
}
else
{
// Package-level dmdSec
// Get an appropriate reader from the metadata configuration
iPackage_dmdSec_ReaderWriter rw = ResourceObjectSettings.MetadataConfig.Get_Package_DmdSec_ReaderWriter(mdtype, othermdtype);
// Is this dmdSec analyzable? (i.e., did we find an appropriate reader/writer?)
if (rw == null)
{
Return_Package.Add_Unanalyzed_DMDSEC(metsSection);
}
else
{
rw.Read_dmdSec(reader, Return_Package, options);
}
}
}
}
}
}
}
#endregion
#region Process the previously stored amd sections