xrReader.GetAttribute(0) ' Output example : BANKNIFTY23101244200CE
Using xrReader As XmlReader = XmlReader.Create(source) Do While xrReader.Read() If xrReader.GetAttribute(0).ToString.StartsWith("BANKNIFTY") Then BankNiftyMappingPresentExpiryDateTextBox.Text = xrReader.GetAttribute(0) End If Loop End Using
<mapping symbol="BANKNIFTY23101244200CE" name="44200CE" exchange=""> <mapping symbol="BANKNIFTY23101244200PE" name="44200PE" exchange=""> <mapping symbol="BANKNIFTY23101244300CE" name="44300CE" exchange=""> <mapping symbol="BANKNIFTY23101244300PE" name="44300PE" exchange="">
Out put example : BANKNIFTY.......44200CE
GetAttribute
string
.ToString
source
GetAttribute(0)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)