Click here to Skip to main content
15,886,137 members

Comments by OMG_Live (Top 4 by date)

OMG_Live 1-Nov-23 3:28am View    
I have created multiple data path with same XML data file

If RadioButton1.Checked Then
source = "C:\Program Files (x86)\Live Feed\watchlist.xml"
ElseIf RadioButton2.Checked Then
source = "C:\Program Files (x86)\Test\watchlist.xml"
ElseIf RadioButton3.Checked Then
source = "C:\watchlist.xml"
ElseIf RadioButton4.Checked Then
source = "C:\Omega Version\watchlist.xml"
End If

As I observed, if I try to read XML data from source = "C:\Program Files (x86)\Live Feed\watchlist.xml", then data is not reading properly with GetAttribute(0) and its showing BANKNIFTY.................44200CE

But with other data source as I mentioned above, its working fine and the value getting as "BANKNIFTY01NOV2344200CE".

Is there any reason for the issue while reading data from "C:\Program Files (x86)\Live Feed\watchlist.xml" ?...Please guide me
OMG_Live 30-Oct-23 11:30am View    
Thanks for your reply. As per your guidance I verified.

01. The source file which is common form both the project.
02. I am getting the value from GetAttribute(0) as BANKNIFTY.................44200CE.

The same output is showing on message box and even on TextBox also.
OMG_Live 29-Oct-23 11:03am View    
Sour file example :
<mapping symbol="BANKNIFTY01NOV2344200CE" name="44200CE" exchange="">
<mapping symbol="BANKNIFTY01NOV2344200PE" name="44200PE" exchange="">
<mapping symbol="BANKNIFTY01NOV2344300CE" name="44300CE" exchange="">
<mapping symbol="BANKNIFTY01NOV2344300PE" name="44300PE" exchange="">


Out put example on second project : BANKNIFTY.................44200CE
OMG_Live 29-Oct-23 10:20am View    
Thank you Mr.Imran for your reply and guidance.

Structure and the data of the XML file is same which I am using in both projects as the XML data source is same by default.

One thing I could not figure it out that, on first project Date value is coming as "BANKNIFTY23101244200CE" and why not getting Date Value on second project?. As you said, on second project Date value is getting converted into "BANKNIFTY.......44200CE".

Please guide how do I solve this issue. Is there any other way to read the Exact Value from the source value ?

Thanks in advance.