public MoveToAttribute ( string name, string namespaceURI ) : bool | ||
name | string | |
namespaceURI | string | |
리턴 | bool |
public override bool MoveToAttribute(string name, string namespaceURI) {
if ( !IsInReadingStates() )
return false;
readerNav.ResetMove( ref curDepth, ref nodeType );
String ns = ( namespaceURI == null ) ? String.Empty : namespaceURI;
if ( readerNav.MoveToAttribute( name, ns ) ) { //, ref curDepth ) ) {
curDepth++;
nodeType = readerNav.NodeType;
if ( bInReadBinary ) {
FinishReadBinary();
}
return true;
}
readerNav.RollBackMove(ref curDepth);
return false;
}
XmlNodeReader::MoveToAttribute ( string name ) : bool | |
XmlNodeReader::MoveToAttribute ( int attributeIndex ) : void |
private void process_package_tag(XmlNodeReader nodeReader, SobekCM_Item thisPackage) { // Get the value of whether this is a new package if (nodeReader.HasAttributes) { // Move to what should be the bib id attribute nodeReader.MoveToAttribute(0); if (nodeReader.Name == "new") { thisPackage.METS_Header.RecordStatus_Enum = METS_Record_Status.COMPLETE; } } }