public bool MoveToAttribute( string name, string namespaceURI ) {
if( this.bCreatedOnAttribute )
return false;
XmlNodeType nt = curNode.NodeType;
if ( nt == XmlNodeType.Element )
return MoveToAttributeFromElement((XmlElement)curNode, name, namespaceURI );
else if ( nt == XmlNodeType.Attribute )
return MoveToAttributeFromElement((XmlElement)elemNode, name, namespaceURI );
else if ( nt == XmlNodeType.XmlDeclaration && namespaceURI.Length == 0 ) {
if ( ( nAttrInd = GetDecAttrInd( name ) ) != -1 ) {
this.bOnAttrVal = false;
return true;
}
} else if ( nt == XmlNodeType.DocumentType && namespaceURI.Length == 0 ) {
if ( ( nAttrInd = GetDocTypeAttrInd( name ) ) != -1 ) {
this.bOnAttrVal = false;
return true;
}
}
return false;
}